summaryrefslogtreecommitdiff
path: root/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index 5859cb3..ec0f46c 100644
--- a/js/app.js
+++ b/js/app.js
@@ -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;