Search and Top Navigation
#6777 closed enhancement (fixed)
Opened December 22, 2010 03:44PM UTC
Closed March 22, 2011 06:08PM UTC
Autocomplete callback when search is complete
Reported by: | hoxworth | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.0 |
Component: | ui.autocomplete | Version: | 1.8.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The autocomplete component needs to have an event that is fired when a search is complete. The present "open" event is fired when there is data returned, but if no data is returned, there is no direct callback that can be utilized to modify UI state.
A use case for this would be separating the 'search' throbber user interface from the jQuery UI autocomplete component. In its current form, one can initiate a custom 'search' throbber at the beginning of a search using the 'search' event, but cannot stop the throbber once a search is complete unless data has been returned and the 'open' event has been called.
Attachments (0)
Change History (4)
Changed December 22, 2010 03:49PM UTC by comment:1
Changed December 22, 2010 04:18PM UTC by comment:2
status: | new → open |
---|
The new callback should be named response and should pass the content as data. The data should be able to be modified in the event/callback before being normalized.
Changed March 02, 2011 03:42PM UTC by comment:3
priority: | minor → blocker |
---|
Option added. See https://github.com/hoxworth/jquery-ui/commit/f5112be3a9d753ebc6f24df3a9dcf6b054620147