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)

DatePicker.js (17.5 KB) - added by tk 13 years ago.
Possible fixed DatePicker?.js for this bug ticket.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 13 years ago by tk

Cc: tk added
Status: newassigned
Summary: dddp: datepicker year enablement incorrect when boundeddp: datepicker year enablement incorrect when bounded

Changed the summary, this problem is inside DP not DDP

comment:2 Changed 13 years ago by tk

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 tk

Attachment: DatePicker.js added

Possible fixed DatePicker?.js for this bug ticket.

comment:3 Changed 13 years ago by Adam Peller

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 tk

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 tk

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 Adam Peller

Milestone: 0.4.10.5
Version: 0.30.4

comment:7 Changed 13 years ago by Adam Peller

Resolution: worksforme
Status: assignedclosed

went away with the simplification of the calendar widget in 0.9

Note: See TracTickets for help on using tickets.