Skip to main content

Search and Top Navigation

#6692 closed bug (fixed)

Opened November 24, 2010 02:32PM UTC

Closed December 01, 2010 03:20AM UTC

Last modified December 08, 2010 06:39PM UTC

Autocomplete: ui-autocomplete-loading class not removed when Ajax request times out

Reported by: doerwalter Owned by:
Priority: minor Milestone: 1.8.7
Component: ui.autocomplete Version: 1.8.6
Keywords: Cc:
Blocked by: Blocking:
Description

When the autocomplete source function does an Ajax request with a timeout value, and the request exceeds the timeout limit, the ui-autocomplete-loading CSS class will never get removed from the input control.

Attachments (0)
Change History (5)

Changed November 30, 2010 11:08PM UTC by scottgonzalez comment:1

status: newopen
summary: ui-autocomplete-loading class not removed when Ajax request times outAutocomplete: ui-autocomplete-loading class not removed when Ajax request times out

Changed December 01, 2010 03:20AM UTC by Scott González comment:2

resolution: → fixed
status: openclosed

Autocomplete: Handle ajax errors and timeouts. Fixes #6692 - Autocomplete: ui-autocomplete-loading class not removed when Ajax request times out.

Changeset: 40135bb09130a56aabc0d185b62a597cb45df0dc

Changed December 06, 2010 02:21PM UTC by doerwalter comment:3

Changeset 40135bb09130a56aabc0d185b62a597cb45df0dc fixes the problem for the simple case, i.e. when the source option is the ajax URL. However when the source options is not a string, but a function, the problem isn't fixed. I realize that it might be unfixable without any changes to the API, but at least there should be a way to cancel the autocomplete (e.g. by calling response(null)) and it should be documented that response *must* be called even in case of an error/timeout.

Changed December 06, 2010 02:41PM UTC by scottgonzalez comment:4

I've updated the docs.

Changed December 08, 2010 06:39PM UTC by scottgonzalez comment:5

milestone: 1.91.8.7