diff options
Diffstat (limited to 'js/app.js')
-rw-r--r-- | js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -89,6 +89,7 @@ var App = null; switchAlarm: function switchAlarm() { var duration = -1; duration = this.ui.alarm.getDuration(); + this.ui.alarm.updateDurationLabel(true); if (duration != -1) { this.alarmN = this.model.getCalendarAlarm(duration, "EventManager Reminder"); @@ -210,10 +211,12 @@ var App = null; endDate = new Date(endDate); if (fullDay) { + startDate.setHours(0, 0, 0, 0); + endDate.setHours(0, 0, 0, 0); + oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds diffDays = Math.round(Math.abs((startDate.getTime() - endDate.getTime())/(oneDay))); - diffDays = (diffDays < 1 ? 1 : diffDays); //minimum 1 day duration duration = diffDays * 60 * 24; } else { // needs duration in minutes; |