Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Autocomplete: Set context for ajax requests instead of relying on def…

…ault context. Fixes #7490 - Autocomplete fails when context option is set with ajaxSetup.

(cherry picked from commit 041cb39)
  • Loading branch information...
commit fc6d6e138c0e5f65ca48a6f333680860f7361636 1 parent 4700302
@scottgonzalez scottgonzalez authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/jquery.ui.autocomplete.js
View
4 ui/jquery.ui.autocomplete.js
@@ -268,7 +268,9 @@ $.widget( "ui.autocomplete", {
url: url,
data: request,
dataType: "json",
- autocompleteRequest: ++requestIndex,
+ context: {
+ autocompleteRequest: ++requestIndex
+ },
success: function( data, status ) {
if ( this.autocompleteRequest === requestIndex ) {
response( data );
Please sign in to comment.
Something went wrong with that request. Please try again.