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

Issue 34 attachment: fullcalendar.diff (2.7 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Index: fullcalendar/fullcalendar.css
===================================================================
--- fullcalendar/fullcalendar.css (revision 24)
+++ fullcalendar/fullcalendar.css (working copy)
@@ -113,7 +113,6 @@
}

.full-calendar-month .event td {
- background: #C1D9EC;
padding: 0;
}

Index: fullcalendar/fullcalendar.js
===================================================================
--- fullcalendar/fullcalendar.js (revision 24)
+++ fullcalendar/fullcalendar.js (working copy)
@@ -627,6 +627,7 @@
for (var k=0; k<segs.length; k++) {
var seg = segs[k];
var event = seg.event;
+ if(!event.color) event.color = "#C1D9EC";
var left1, left2, roundW, roundE;
if (r2l) {
left2 = seg.isStart ?
@@ -658,15 +659,15 @@
var element = $("<table class='event" + (cl || '') + "' />")
.append("<tr>" +
(roundW ? "<td class='nw'/>" : '') +
- "<td class='n'/>" +
+ "<td class='n' style='background-color: "+event.color+";'/>" +
(roundE ? "<td class='ne'/>" : '') + "</tr>")
.append("<tr>" +
- (roundW ? "<td class='w'/>" : '') +
- "<td class='c'/>" +
- (roundE ? "<td class='e'/>" : '') + "</tr>")
+ (roundW ? "<td class='w' style='background-color: "+event.color+";'/>" : '') +
+ "<td class='c' style='background-color: "+event.color+";'/>" +
+ (roundE ? "<td class='e' style='background-color: "+event.color+";'/>" : '') + "</tr>")
.append("<tr>" +
(roundW ? "<td class='sw'/>" : '') +
- "<td class='s'/>" +
+ "<td class='s' style='background-color: "+event.color+";'/>" +
(roundE ? "<td class='se'/>" : '') + "</tr>");
buildEventText(event, element.find('td.c'));
if (options.eventRender) {
Index: examples/basic.html
===================================================================
--- examples/basic.html (revision 24)
+++ examples/basic.html (working copy)
@@ -36,28 +36,32 @@
id: 1,
title: "Long Event",
start: new Date(y, m, 6, 14, 0),
- end: new Date(y, m, 11)
+ end: new Date(y, m, 11),
},
{
id: 2,
title: "Repeating Event",
- start: new Date(y, m, 2)
+ start: new Date(y, m, 2),
+ color: "#BBCCAA",
},
{
id: 2,
title: "Repeating Event",
- start: new Date(y, m, 9)
+ start: new Date(y, m, 9),
+ color: "#BBCCAA",
},
{
id: 3,
title: "Meeting",
- start: new Date(y, m, 20, 9, 0)
+ start: new Date(y, m, 20, 9, 0),
+ color: "#CCAABB",
},
{
id: 4,
title: "Click for Facebook",
start: new Date(y, m, 27, 16),
end: new Date(y, m, 29),
+ color: "#CCAABB",
url: "http://facebook.com/"
}
]
Powered by Google Project Hosting