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
871
attachment: fullcalendar.patch
(2.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
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
87
88
89
*** fullcalendar_orig.js 2011-08-03 10:13:44.000000000 +0200
--- fullcalendar.js 2011-08-09 17:28:19.166538899 +0200
***************
*** 1967,1973 ****
function render(date, delta) {
if (delta) {
! addYears(date, delta);
}
var start = cloneDate(date, true);
//start.setDate(1);
--- 1967,1973 ----
function render(date, delta) {
if (delta) {
! t.curYear = addYears(date, delta);
}
var start = cloneDate(date, true);
//start.setDate(1);
***************
*** 2190,2212 ****
var date;
var row;
subTables.each(function(i, _sub){
! var d = cloneDate(t.start);
d.setFullYear(d.getFullYear(),i,1);
d.setFullYear(d.getFullYear(),i,1-d.getDay());
$(_sub).find('td').each(function(ii, _cell) {
cell = $(_cell);
if (d.getMonth() == i) {
cell.removeClass('fc-other-month');
}else{
cell.addClass('fc-other-month');
}
if (+d == +today && d.getMonth() == i) {
cell.addClass(tm + '-state-highlight fc-today');
}else{
cell.removeClass(tm + '-state-highlight fc-today');
}
! cell.find('div.fc-day-number').text(d.getDate());
addDays(d, 1);
});
});
--- 2190,2221 ----
var date;
var row;
subTables.each(function(i, _sub){
!
! if ( !t.curYear ) t.curYear = t.start;
!
! var d = cloneDate(t.curYear);
d.setFullYear(d.getFullYear(),i,1);
d.setFullYear(d.getFullYear(),i,1-d.getDay());
$(_sub).find('td').each(function(ii, _cell) {
+ var dayStr;
cell = $(_cell);
if (d.getMonth() == i) {
cell.removeClass('fc-other-month');
+ dayStr=formatDate(d, '-yyyy-MM-dd');
}else{
cell.addClass('fc-other-month');
+ dayStr="";
}
if (+d == +today && d.getMonth() == i) {
cell.addClass(tm + '-state-highlight fc-today');
}else{
cell.removeClass(tm + '-state-highlight fc-today');
}
! var $div = cell.find('div.fc-day-number');
! $div.text(d.getDate());
! $div.parent().parent().attr('class', "fc-widget-content fc-day" + dayStr);
!
addDays(d, 1);
});
});
***************
*** 5950,5953 ****
}
! })(jQuery);
\ No newline at end of file
--- 5959,5962 ----
}
! })(jQuery);
Powered by
Google Project Hosting