mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
* Calendar: Fix quick add -> edit would incorrectly set end date
This commit is contained in:
parent
f4dccd73d4
commit
7cf2db5e24
@ -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