Skip to content
This repository has been archived by the owner on Jan 29, 2018. It is now read-only.

Found and fixed bug with new jQuery 1.6+ #2

Open
ghiscoding opened this issue Nov 30, 2011 · 2 comments
Open

Found and fixed bug with new jQuery 1.6+ #2

ghiscoding opened this issue Nov 30, 2011 · 2 comments

Comments

@ghiscoding
Copy link

Since I'm using this calendar for a personal project and want to keep it and I've recently updated to the new jQuery 1.7 and it seems that code of this calendar is now broken. While clicking on the icon, it just wasn't refreshing the input anymore...

Again I debugged it and found the problem to be:

// the problematic line, this isn't supported somehow
(calendar.dateField.attr('tagName') == 'INPUT')

// need to be replaced by this
(calendar.dateField.get(0).tagName == 'INPUT')

Am the only one using this? No one ever reply here... anyways, hope it helps

@softshape
Copy link

The old code worked even with 1.7, in my case, but suddenly stopped. I don't know the actual reason, but your fix made it work again - thank you!

@christianbaer
Copy link
Contributor

thanks, it worked for me as well!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants