except that if you move to the next month, and then back, the highlight for the currently selected date is gone.

On 31/05/2011 7:03 PM, antalk wrote:
DatePicker.prototype.goToNextMonth = function ()
{
     var d = new Date(this._selectedDate);
     d.setDate(Math.min(d.getDate(), DatePicker.getDaysPerMonth(d.getMonth()
+ 1,
             d.getFullYear()))); // no need to catch dec ->  jan for the year
     d.setMonth(d.getMonth() + 1);
     this._none = true;
     this.setDate(d,false);
}

DatePicker.prototype.goToPreviousMonth = function ()
{
     var d = new Date(this._selectedDate);
     d.setDate(Math.min(d.getDate(), DatePicker.getDaysPerMonth(d.getMonth()
- 1,
             d.getFullYear()))); // no need to catch jan ->  dec for the year
     d.setMonth(d.getMonth() - 1);
     this._none = true;
     this.setDate(d,false);
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to