My favorites
▼
|
Sign in
fullcalendar
ISSUE TRACKER HAS MOVED. DO NOT USE THIS (more info)
Project Home
Issues
Export to GitHub
New issue
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
144
attachment: bhours-patch.diff
(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
--- D:/fullcalendar-buisnesshours.js
+++ D:/fullcalendar.js
@@ -1940,8 +1940,6 @@
setDefaults({
allDaySlot: true,
allDayText: 'all-day',
- firstBHour: 9,
- lastBHour: 18,
firstHour: 6,
slotMinutes: 30,
defaultEventMinutes: 120,
@@ -2106,19 +2104,14 @@
d = zeroDate();
var maxd = addMinutes(cloneDate(d), maxMinute);
addMinutes(d, minMinute);
-
- // Buisness hours
- var slotPerHour = 60 / opt('slotMinutes');
-
- s = '<table>';
- for (var i = 0; d < maxd; i++) {
- var time = (i+1) / slotPerHour;
+ s = "<table>";
+ for (i=0; d < maxd; i++) {
minutes = d.getMinutes();
s += "<tr class='" +
(!i ? 'fc-first' : (!minutes ? '' : 'fc-minor')) +
"'><th class='fc-axis fc-leftmost " + tm + "-state-default'>" +
((!slotNormal || !minutes) ? formatDate(d, opt('axisFormat')) : ' ') +
- "</th><td class='fc-slot" + i + ' ' + ((time > opt('firstBHour') && time <= opt('lastBHour')) ? 'worktime ' : '') +
+ "</th><td class='fc-slot" + i + ' ' +
tm + "-state-default'><div style='position:relative'> </div></td></tr>";
addMinutes(d, opt('slotMinutes'));
slotCnt++;
Powered by
Google Project Hosting