Opened 13 years ago
Closed 13 years ago
#1690 closed defect (worksforme)
dp: datepicker year enablement incorrect when bounded
Reported by: | Adam Peller | Owned by: | tk |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Widgets | Version: | 0.4 |
Keywords: | Cc: | bill, tk | |
Blocked By: | Blocking: |
Description
In the very first test in test_DropdownDatePicker.html, where the start date is 2006-10-25, pop up the datepicker and scroll down so it's January 2007. Note that 2006 does not appear.
Attachments (1)
Change History (8)
comment:1 Changed 13 years ago by
Cc: | tk added |
---|---|
Status: | new → assigned |
Summary: | dddp: datepicker year enablement incorrect when bounded → dp: datepicker year enablement incorrect when bounded |
comment:2 Changed 13 years ago by
I'm at work so I cant test this in anyway... so if someone could give this DatePicker?.js file a test and see if it fixes the problem describe in the DDP test I'd appreciate it.
Changed 13 years ago by
Attachment: | DatePicker.js added |
---|
Possible fixed DatePicker?.js for this bug ticket.
comment:3 Changed 13 years ago by
nope. "2006" doesn't appear until you scroll down to October 2007. It should appear when you hit January 2007.
comment:4 Changed 13 years ago by
How about this change to the increment controls....
if(decYear){
decYear = !(d2.getFullYear()>this.startDate.getFullYear());
} if(incYear){
incYear = !(d1.getFullYear()<this.endDate.getFullYear());
}
comment:5 Changed 13 years ago by
Err actually, I think thats wrong...
if(decYear){
decYear = (d2.getFullYear()>this.startDate.getFullYear());
} if(incYear){
incYear = (d1.getFullYear()<this.endDate.getFullYear());
}
I think negating the boolean would give me the inverse of what I need
comment:6 Changed 13 years ago by
Milestone: | 0.4.1 → 0.5 |
---|---|
Version: | 0.3 → 0.4 |
comment:7 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
went away with the simplification of the calendar widget in 0.9
Changed the summary, this problem is inside DP not DDP