2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-29 08:14:06 +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:
Alexandre Kopelevitch 2016-09-16 09:03:50 -03:00
parent d7b487cc73
commit 005b6135bf

View File

@ -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',