Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related Selects + Chosen #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mliberato
Copy link

Some improvements to allow use of related selects with frameworks like 'chosen'.
With this improvements is possible to hook in callbacks and update visual representations of related selects.

Some frameworks - like 'chosen' - creates visual elements to represent real selects.
When an option is marked as 'selected' programmatically, it don't fire 'change' event.
This fix trigger 'change' event whenever is necessaray, so it can be listened by others.
It was necessary also to create a 'onAfterReset' to allow others to intercept the first
moment a select turns 'disabled' as triggering 'change' without changing the selected
option doesn't cause event 'change' to be triggered properly (because nothing changes
of course).
@di
Copy link

di commented Sep 18, 2012

+1

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

Successfully merging this pull request may close these issues.

2 participants