forked from extern/egroupware
* Calendar: Fix quick add -> edit would incorrectly set end date
This commit is contained in:
parent
e549b6fcd9
commit
2f40337f81
@ -1292,7 +1292,7 @@ var CalendarApp = /** @class */ (function (_super) {
|
||||
var end = widget.getRoot().getDOMWidgetById('end');
|
||||
var start_time = new Date(widget.getValue());
|
||||
var end_time = new Date(end.getValue());
|
||||
if (end_time <= start_time) {
|
||||
if (end.getValue() && end_time <= start_time) {
|
||||
start_time.setMinutes(start_time.getMinutes() + 1);
|
||||
end.set_value(start_time);
|
||||
}
|
||||
|
@ -1352,7 +1352,7 @@ class CalendarApp extends EgwApp
|
||||
let end = <et2_date> widget.getRoot().getDOMWidgetById('end');
|
||||
let start_time = new Date(widget.getValue());
|
||||
let end_time = new Date(end.getValue());
|
||||
if(end_time <= start_time)
|
||||
if(end.getValue() && end_time <= start_time)
|
||||
{
|
||||
start_time.setMinutes(start_time.getMinutes() + 1);
|
||||
end.set_value(start_time);
|
||||
|
Loading…
Reference in New Issue
Block a user