Skip to main content

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:

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 hoxworth comment:1

Changed December 22, 2010 04:18PM UTC by scottgonzalez comment:2

status: newopen

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 scottgonzalez comment:3

priority: minorblocker

Changed March 22, 2011 06:08PM UTC by Scott González comment:4

resolution: → fixed
status: openclosed

Autocomplete: Added response event. Fixes #6777 - Autocomplete callback when search is complete.

Changeset: e7991e33f3c5d20d6efdb18654859175ef5cac68