mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43: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 end = widget.getRoot().getDOMWidgetById('end');
|
||||||
var start_time = new Date(widget.getValue());
|
var start_time = new Date(widget.getValue());
|
||||||
var end_time = new Date(end.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);
|
start_time.setMinutes(start_time.getMinutes() + 1);
|
||||||
end.set_value(start_time);
|
end.set_value(start_time);
|
||||||
}
|
}
|
||||||
|
@ -1352,7 +1352,7 @@ class CalendarApp extends EgwApp
|
|||||||
let end = <et2_date> widget.getRoot().getDOMWidgetById('end');
|
let end = <et2_date> widget.getRoot().getDOMWidgetById('end');
|
||||||
let start_time = new Date(widget.getValue());
|
let start_time = new Date(widget.getValue());
|
||||||
let end_time = new Date(end.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);
|
start_time.setMinutes(start_time.getMinutes() + 1);
|
||||||
end.set_value(start_time);
|
end.set_value(start_time);
|
||||||
|
Loading…
Reference in New Issue
Block a user