mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-17 20:21:18 +01:00
Preset enddate accroding to start date of an event, plus considering duration if it exists
This commit is contained in:
parent
c3f3d0e01f
commit
acedd51dc5
@ -713,10 +713,18 @@ app.classes.calendar = AppJS.extend(
|
||||
set_enddate_visibility: function()
|
||||
{
|
||||
var duration = this.et2.getWidgetById('duration');
|
||||
var start = this.et2.getWidgetById('start');
|
||||
var end = this.et2.getWidgetById('end');
|
||||
var content = this.et2.getArrayMgr('content').data;
|
||||
|
||||
if (typeof duration != 'undefined' && typeof end != 'undefined')
|
||||
{
|
||||
end.set_disabled(duration.get_value()!=='');
|
||||
if (!end.disabled )
|
||||
{
|
||||
end.set_value(start.get_value());
|
||||
if (typeof content.duration != 'undefined') end.set_value("+"+content.duration);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user