Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Pull from Updated Fork: Jobvite/ajax-chosen #10
So I've been working on some enhancements and went perusing through the assorted forks of ajax-chosen to see who had the most fleshed out version. I settled on a fork which seemed to integrate all the features that were merely touched upon in all the other forks, and merged in a fix from some other branches.
On top of that I added a very new feature: initialQuery
initialQuery allows you to populate the dropmenu when the chosen widget is first opened (on click or focus). This way you can show for instance the first 50 records and then start firing subsequent ajax requests for 10 records at a time.
Extra data is passed to the callback function so that you can determine how the ajax is being triggered (focus vs keyup) allowing you to modify the request accordingly.
I will subsequently be adding 2 major features in the near future