Skip to content

Conversation

@biTshifT
Copy link

I thought that I should contribute a quick change which I made which allows an AJAX progress indicator ("throbber") to be displaying in the autocomplete field for AJAX queries. This seems to make a significant difference to our users and makes them a great deal happier with the manner in which the control functions. It basically just adds a CSS class to the element before the GET, and removes it when the response is processed.

- Added a new searchClass option - The searchClass is set to 'searching' by default - The searchClass CSS class is added to the search element before the GET and removed when the response is processed.
@tkirda
Copy link
Member

tkirda commented Dec 19, 2012

Version 1.2 now has onSearchStart and onSearchComplete callbacks. this inside callback refers to input element so you can add/remove any classes there. Check improved script and updated documentation on GitHub.

@tkirda tkirda closed this Dec 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants