зеркало из https://github.com/mozilla/pjs.git
Bug 326132 Start time of all-day events is set to 1:00 causing 'Your start time is after your end time' error, r=mvl
This commit is contained in:
Родитель
188d77e4a6
Коммит
05106adddd
|
@ -441,6 +441,10 @@ function updateAccept()
|
||||||
if (isEvent(window.calendarItem)) {
|
if (isEvent(window.calendarItem)) {
|
||||||
startDate = jsDateToDateTime(getElementValue("event-starttime"));
|
startDate = jsDateToDateTime(getElementValue("event-starttime"));
|
||||||
endDate = jsDateToDateTime(getElementValue("event-endtime"));
|
endDate = jsDateToDateTime(getElementValue("event-endtime"));
|
||||||
|
if (getElementValue("event-all-day", "checked")) {
|
||||||
|
startDate.isDate = true;
|
||||||
|
endDate.isDate = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
startDate = getElementValue("todo-has-entrydate", "checked") ?
|
startDate = getElementValue("todo-has-entrydate", "checked") ?
|
||||||
jsDateToDateTime(getElementValue("todo-entrydate")) : null;
|
jsDateToDateTime(getElementValue("todo-entrydate")) : null;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче