#1487 closed defect (fixed)
Datepicker control enablement off by one
Reported by: | Adam Peller | Owned by: | Karl Tiedt |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.4 |
Keywords: | datepicker | Cc: | |
Blocked By: | Blocking: |
Description
Look at tests/widget/test_DatePicker.html at the following two tests:
Same as first, with startDate of 10 September 2006 Same as first, with endDate of 10 September 2006
If you go forward/back a month, you cannot return to the month where you started using month controls (though you can wit week). Perhaps the comparison for enablement should just be the 1st of the month?
The same applies to the week and year controls. They're off by one and will not let you return to the initial state. Go from Sep 06 to Dec 06 then to Jan 07 and the 2006 button disappears.
Note: See
TracTickets for help on using
tickets.
revision 5751 fixes this problem