mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-01 11:32:44 +00:00
Fixed dates validation with new date picker
This commit is contained in:
@@ -51,9 +51,9 @@ function savePreferences(sender) {
|
||||
}
|
||||
if ($("enableVacationEndDate") && $("enableVacationEndDate").checked) {
|
||||
var e = $("vacationEndDate_date");
|
||||
var endDate = e.calendar.prs_date(e.value);
|
||||
var endDate = e.inputAsDate();
|
||||
var now = new Date();
|
||||
if (endDate.getTime() < now.getTime()) {
|
||||
if (isNaN(endDate.getTime()) || endDate.getTime() < now.getTime()) {
|
||||
showAlertDialog(_("End date of your auto reply must be in the future."));
|
||||
sendForm = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user