My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 951 attachment: fullcalendar.js.patch (1.2 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- calissue/fullcalendar.js.1.5.1 Sat Apr 09 14:13:16 2011
+++ calissue/fullcalendar.js Wed May 11 16:00:53 2011
@@ -2812,7 +2812,8 @@
agenda: .5
},
minTime: 0,
- maxTime: 24
+ maxTime: 24,
+ shiftMinutes: 0
});


@@ -2954,8 +2955,8 @@
dis = 1;
dit = 0;
}
- minMinute = parseTime(opt('minTime'));
- maxMinute = parseTime(opt('maxTime'));
+ minMinute = parseTime(opt('minTime')) + opt('shiftMinutes');
+ maxMinute = parseTime(opt('maxTime')) + opt('shiftMinutes');
colFormat = opt('columnFormat');
}

@@ -3079,9 +3080,9 @@
for (i=0; d < maxd; i++) {
minutes = d.getMinutes();
s +=
- "<tr class='fc-slot" + i + ' ' + (!minutes ? '' : 'fc-minor') + "'>" +
+ "<tr class='fc-slot" + i + ' ' + (minutes == opt('shiftMinutes') ? '' : 'fc-minor') + "'>" +
"<th class='fc-agenda-axis " + headerClass + "'>" +
- ((!slotNormal || !minutes) ? formatDate(d, opt('axisFormat')) : '&nbsp;') +
+ ((!slotNormal || minutes == opt('shiftMinutes')) ? formatDate(d, opt('axisFormat')) : '&nbsp;') +
"</th>" +
"<td class='" + contentClass + "'>" +
"<div style='position:relative'>&nbsp;</div>" +
Powered by Google Project Hosting