all outstanding patch submissions
[webos-internals:jeffrotulls-modifications.git] / calendar / calendar-snooze-alternate-behavior.patch
1 diff --git a/usr/palm/applications/com.palm.app.calendar/app/controllers/reminder-assistant.js b/usr/palm/applications/com.palm.app.calendar/app/controllers/reminder-assistant.js
2 index d190fd1..60c3429 100644
3 --- a/usr/palm/applications/com.palm.app.calendar/app/controllers/reminder-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.calendar/app/controllers/reminder-assistant.js
5 @@ -4,7 +4,7 @@
6  var ReminderAssistant = Class.create({
7         initialize: function(eventId,needThrobbing) {
8                 Mojo.Log.info("$$$$$$$$ Reminder-assistant initialize: start: "+eventId);
9 -               this.DEFAULT_SNOOZE = 5;
10 +               this.DEFAULT_SNOOZE = 10;
11                 this.reminders = getReminderManager();
12                 getAppAssistant().openReminderAlert = this;
13                 this.requests = [];
14 @@ -363,7 +363,7 @@ var ReminderAssistant = Class.create({
15                 var template = new Template(templateStr);
16                 var snoozeText=template.evaluate(templateModel);
17                 Mojo.Log.info("$$$$$$$$ Reminder-assistant snooze: showBanner" + this.reminder.id);
18 -               Mojo.Controller.appController.showBanner({messageText: snoozeText}, null /*launchArguments*/, "calendar-snooze");
19 +       //      Mojo.Controller.appController.showBanner({messageText: snoozeText}, null /*launchArguments*/, "calendar-snooze");
20  
21                 Mojo.Log.info("$$$$$$$$ Reminder-assistant snooze: end" + this.reminder.id);
22         },
23 @@ -404,7 +404,7 @@ var ReminderAssistant = Class.create({
24         
25         scheduleAutoCloseTask: function() {
26                 Mojo.Log.info("$$$$$$$$ Reminder-assistant scheduleAutoCloseTask: start " + this.reminder.id);
27 -               var minCloseTime = new Date(this.reminder.time).addMinutes(15);
28 +               var minCloseTime = new Date(this.reminder.time).addMinutes(2160);
29                 var closeTime = new Date(this.reminder.time + this.reminder.duration);
30                 if (closeTime < minCloseTime)
31                         closeTime = minCloseTime;