couple new, more updated
[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 8cc09e6..0910c22 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 @@ -527,7 +527,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 @@ -952,7 +952,7 @@ var DayAssistant = Class.create({
15                                 maxFreeDuration = free.height;
16                         }
17                         
18 -                       if (free.duration > 150) {
19 +                       if (free.duration > 1440) {
20                                 var templateModel =
21                                 {       hour: parseInt((free.duration / 100.0), 10)
22                                 ,       min     : (((free.duration % 100) / 100.0) * 60).toFixed (0) * 1
23 @@ -1042,7 +1042,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 @@ -1298,7 +1298,7 @@ var DayAssistant = Class.create({
33                 for (i = 0; i < day.freeTimes.length; i++) {
34                         free = day.freeTimes[i];
35  
36 -                       if (free.duration <= 150) {
37 +                       if (free.duration <= 1440) {
38                                 continue;
39                         }
40  
41 @@ -3713,7 +3713,7 @@ var DayAssistant = Class.create({
42                 
43                 for (var i=0, j=day.freeTimes.length; i < j; i++) {
44                         var free = day.freeTimes[i];
45 -                       if (free.duration <= 150) {
46 +                       if (free.duration <= 1440) {
47                                 continue;
48                         }
49