Changes between Initial Version and Version 1 of Ticket #1855


Ignore:
Timestamp:
Nov 27, 2006, 1:21:46 PM (13 years ago)
Author:
alex
Comment:

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  
    44
    55The following line clearly doesn't handle the case of nextDate being in January (month = 0) and curMonth being December (month == 11)
    6 
     6{{{
    77var curClass = (nextDate.getMonth()<this.curMonth.getMonth())?'previous':(nextDate.getMonth()==this.curMonth.getMonth())?'current':'next';
    8 
     8}}}
    99Fix is to replace above line with the following
    10 
     10{{{
    1111var myMonth = nextDate.getMonth();
    1212var curMonth = this.curMonth.getMonth();
    1313var curClass = (myMonth==curMonth)?'current':(myMonth==0 && curMonth==11)?'next':(myMonth<curMonth)?'previous':'next';
     14}}}