mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 14:17:45 +00:00
- Replaced $.parseJSON with JSON.parse(), following jQuery 3.0 upgrade guide (https://jquery.com/upgrade-guide/3.0/#deprecated-jquery-parsejson)
This commit is contained in:
parent
d7b487cc73
commit
005b6135bf
@ -86,7 +86,7 @@
|
|||||||
},
|
},
|
||||||
paramName: 'query',
|
paramName: 'query',
|
||||||
transformResult: function (response) {
|
transformResult: function (response) {
|
||||||
return typeof response === 'string' ? $.parseJSON(response) : response;
|
return typeof response === 'string' ? JSON.parse(response) : response;
|
||||||
},
|
},
|
||||||
showNoSuggestionNotice: false,
|
showNoSuggestionNotice: false,
|
||||||
noSuggestionNotice: 'No results',
|
noSuggestionNotice: 'No results',
|
||||||
|
Loading…
Reference in New Issue
Block a user