12 new, 4 updated for 1.3.5
[webos-internals:modifications.git] / calendar / calendar-add-one-minute-interval.patch
1 Name: calendar-1minute-interval
2 Version: 1.3.1-01
3 Author: aric
4 Description: allows start and end times at 1 minute intervals, instead of 5 minute.
5
6 --- .orig/usr/palm/applications/com.palm.app.calendar/app/controllers/datetime-assistant.js
7 +++ /usr/palm/applications/com.palm.app.calendar/app/controllers/datetime-assistant.js
8 @@ -167,7 +167,7 @@
9         this.startTimeModel = {
10                 time: new Date(this.targetModifiedTime.start)
11         };
12 -    this.controller.setupWidget('edit_startTime', {label: $L('Time'),modelProperty:'time'}, this.startTimeModel);
13 +    this.controller.setupWidget('edit_startTime', {label: $L('Time'),modelProperty:'time',minuteInterval:1}, this.startTimeModel);
14      this.controller.listen('edit_startTime',Mojo.Event.propertyChange, this.startTimeCallback.bindAsEventListener(this));
15                 
16         this.endTimeModel = {
17 @@ -173,7 +173,7 @@
18         this.endTimeModel = {
19                 time: new Date(this.targetModifiedTime.end)
20         };
21 -    this.controller.setupWidget('edit_endTime', {label: $L('Time'), modelProperty:'time'}, this.endTimeModel);
22 +    this.controller.setupWidget('edit_endTime', {label: $L('Time'), modelProperty:'time',minuteInterval:1}, this.endTimeModel);
23      this.controller.listen('edit_endTime',Mojo.Event.propertyChange, this.endTimeCallback.bindAsEventListener(this));
24         
25  
26