Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

DatePicker Bug, Weird calendar functionality #75

Open
Gafa opened this Issue · 0 comments

1 participant

@Gafa

I'm guessing this hasn't been addressed as I'm running into this too.

So I poked around with the code, and discovered that if the hours in fillCalendar method ===0 then you get the weirdness in my case I got for November 2010:

31 1 2 3 4 5 6
7 7 7 7 7 7 7
7 7 7 7 7 7 7
7 7 7 7 7 7 7
7 7 7 7 7 7 7
7 7 7 7 7 7 7

Place the below code in the method fillCalendar in DatPicker (class function)
under:

var hours = startDate.get('hours');

if(hours.toInt()===0) hours=23; //XXX new code

This solved the problem, problem is if the read in date doesn't contain the time, weirdness happens.

I do have latest version of clientcide and datepicker with stickyWin. I tested this with IE7.0 and FF 3.6. Tested with Mootools 1.2.4 and 1.2.5 core.

Gafa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.