add patches
[webos-internals:modifications.git] / calendar / calendar-disable-compressed-view.patch
1 diff --git a/usr/palm/applications/com.palm.app.calendar/app/controllers/day-assistant.js b/usr/palm/applications/com.palm.app.calendar/app/controllers/day-assistant.js
2 index 84263c0..4101587 100644
3 --- a/usr/palm/applications/com.palm.app.calendar/app/controllers/day-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.calendar/app/controllers/day-assistant.js
5 @@ -458,7 +458,7 @@ var DayAssistant = Class.create({
6         },
7         
8         renderFreeTime: function(whichDay, free) {
9 -               if (free.duration > 150) {
10 +               if (free.duration > 1440) {
11                         var ctx = this.divs[whichDay].ctxEvents;
12                         
13                         var top = this.compressPos(free.top, free.topCompress);
14 @@ -856,7 +856,7 @@ var DayAssistant = Class.create({
15                         if (free.height > maxFreeDuration)
16                                 maxFreeDuration = free.height;
17                         
18 -                       if (free.duration > 150) {
19 +                       if (free.duration > 1440) {
20                                 var template;
21                                 var templateModel = {};
22                                 templateModel.hour = parseInt(free.duration / 100.0);
23 @@ -946,7 +946,7 @@ var DayAssistant = Class.create({
24                 do {
25                         this._freeTimeIndex++;
26                         free = (this._freeTimeIndex < this._freeTimes.length) ? this._freeTimes[this._freeTimeIndex] : null;
27 -               } while (free && (free.duration <= 150));
28 +               } while (free && (free.duration <= 1440));
29                 return free;
30         },
31         
32 @@ -3494,7 +3494,7 @@ var DayAssistant = Class.create({
33                 
34                 for (i = 0; i < day.freeTimes.length; i++) {
35                         var free = day.freeTimes[i];
36 -                       if (free.duration <= 150)
37 +                       if (free.duration <= 1440)
38                                 continue;
39                                 
40                         // Note the values passed to compressPos below are intentionally reversed.