Improve event attendees editor

- Avoid repetitive AJAX queries;
- Improve handling of daylight changes.
This commit is contained in:
Francis Lachapelle
2015-03-23 16:28:32 -04:00
committed by Ludovic Marcotte
parent 4d52c9d7e4
commit 881d99262d
2 changed files with 40 additions and 31 deletions

View File

@@ -218,7 +218,7 @@ Date.prototype.stringWithSeparator = function(separator) {
Date.prototype.addDays = function(nbrDays) {
var milliSeconds = this.getTime();
milliSeconds += 86400000 * nbrDays;
milliSeconds += 86400000 * Math.round(nbrDays);
this.setTime(milliSeconds);
};