Changes between Initial Version and Version 1 of Ticket #1855
- Timestamp:
- Nov 27, 2006, 1:21:46 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1855
- Property Owner changed from anonymous to tk
-
Property
Milestone
changed from
to
0.5
-
Ticket #1855 – Description
initial v1 4 4 5 5 The following line clearly doesn't handle the case of nextDate being in January (month = 0) and curMonth being December (month == 11) 6 6 {{{ 7 7 var curClass = (nextDate.getMonth()<this.curMonth.getMonth())?'previous':(nextDate.getMonth()==this.curMonth.getMonth())?'current':'next'; 8 8 }}} 9 9 Fix is to replace above line with the following 10 10 {{{ 11 11 var myMonth = nextDate.getMonth(); 12 12 var curMonth = this.curMonth.getMonth(); 13 13 var curClass = (myMonth==curMonth)?'current':(myMonth==0 && curMonth==11)?'next':(myMonth<curMonth)?'previous':'next'; 14 }}}