mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-02 02:02:32 +00:00
fix(preferences(js)): don't filter vacation start date
This commit is contained in:
@@ -563,21 +563,6 @@
|
||||
}
|
||||
};
|
||||
|
||||
this.validateVacationStartDate = function(date) {
|
||||
var d = vm.preferences.defaults, r = true;
|
||||
if (d &&
|
||||
d.Vacation &&
|
||||
d.Vacation.enabled) {
|
||||
if (d.Vacation.startDateEnabled) {
|
||||
r = (!d.Vacation.endDateEnabled ||
|
||||
!d.Vacation.endDate ||
|
||||
date.getTime() <= d.Vacation.endDate.getTime());
|
||||
}
|
||||
}
|
||||
|
||||
return r;
|
||||
};
|
||||
|
||||
this.validateVacationEndDate = function(date) {
|
||||
var d = vm.preferences.defaults, r = true;
|
||||
if (d &&
|
||||
|
||||
Reference in New Issue
Block a user