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
191
attachment: fulcalpatch.txt
(1.5 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
Index: src/grid.js
===================================================================
--- src/grid.js (revision 62)
+++ src/grid.js (working copy)
@@ -191,7 +191,10 @@
for (j=0; j<colCnt; j++) {
s += "<td class='fc-" +
dayIDs[d.getDay()] + ' ' + // needs to be first
- tm + '-state-default fc-day' + (i*colCnt+j) +
+ tm + '-state-default fc-day' + (i*colCnt+j)
+ + ' '
+ + ('fc-fulldate-'+d.getFullYear()+d.getMonth()+d.getDate())
+ + ' '
(j==dit ? ' fc-leftmost' : '') +
(rowCnt>1 && d.getMonth() != month ? ' fc-other-month' : '') +
(+d == +today ?
@@ -224,7 +227,10 @@
for (j=0; j<colCnt; j++) {
s += "<td class='fc-" +
dayIDs[d.getDay()] + ' ' + // needs to be first
- tm + '-state-default fc-new fc-day' + (i*colCnt+j) +
+ tm + '-state-default fc-new fc-day' + (i*colCnt+j)
+ + ' '
+ + ('fc-fulldate-'+d.getFullYear()+d.getMonth()+d.getDate())
+ + ' '
(j==dit ? ' fc-leftmost' : '') + "'>" +
(showNumbers ? "<div class='fc-day-number'></div>" : '') +
"<div class='fc-day-content'><div> </div></div>" +
@@ -260,6 +266,9 @@
.removeClass('fc-today')
.removeClass(tm + '-state-highlight');
}
+
+ td.attr("class", td.attr("class").replace(/fc-fulldate-\d+(?= )/, 'fc-fulldate-' + d.getFullYear()+d.getMonth()+d.getDate()));
+
td.find('div.fc-day-number').text(d.getDate());
addDays(d, 1);
if (nwe) {
Powered by
Google Project Hosting