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:
Francis Lachapelle
2012-03-29 18:18:29 +00:00
parent 97bc9be439
commit 8a91626aff
3 changed files with 7 additions and 3 deletions

View File

@@ -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.

View File

@@ -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),

View File

@@ -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."));