mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 01:38:51 +00:00
See ChangeLog.
Monotone-Parent: f0aff6d064b474daad4423a6fe416a4b18b4ab7c Monotone-Revision: 1d9fffa147b786b7f5e72b9d75962ded71d83e96 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-03-29T18:18:29
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2012-03-29 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/UIxPreferences.js (savePreferences): fixed
|
||||
validation of end date of vacation of message when not using ISO
|
||||
format (currently limited to French).
|
||||
|
||||
* UI/WebServerResources/ContactsUI.js (startDragging): create an
|
||||
overlapping safety block (div) to avoid possible selection of the
|
||||
underlying text.
|
||||
|
||||
@@ -52,11 +52,11 @@ String.prototype.asDate = function () {
|
||||
var newDate;
|
||||
var date = this.split("/");
|
||||
if (date.length == 3)
|
||||
newDate = new Date(date[2], date[1] - 1, date[0]);
|
||||
newDate = new Date(date[2], date[1] - 1, date[0]); // dd/mm/yyyy
|
||||
else {
|
||||
date = this.split("-");
|
||||
if (date.length == 3)
|
||||
newDate = new Date(date[0], date[1] - 1, date[2]);
|
||||
newDate = new Date(date[0], date[1] - 1, date[2]); // yyyy-mm-dd
|
||||
else {
|
||||
if (this.length == 8) {
|
||||
newDate = new Date(this.substring(0, 4),
|
||||
|
||||
@@ -39,7 +39,7 @@ function savePreferences(sender) {
|
||||
sendForm = false;
|
||||
}
|
||||
if ($("enableVacationEndDate") && $("enableVacationEndDate").checked) {
|
||||
var endDate = new Date($("vacationEndDate_date").value);
|
||||
var endDate = $("vacationEndDate_date").value.asDate();
|
||||
var now = new Date();
|
||||
if (endDate.getTime() < now.getTime()) {
|
||||
showAlertDialog(_("End date of your auto reply must be in the future."));
|
||||
|
||||
Reference in New Issue
Block a user