FIX Pass only the search string where testing, not the entire form.

This commit is contained in:
Mateusz Uzdowski 2012-10-15 16:41:27 +13:00
parent 574c53d5ba
commit e84b0339d8

View File

@ -302,7 +302,7 @@
},
type: "GET",
url: suggestionUrl,
data: form.serialize()+'&'+escape(searchField.attr('name'))+'='+escape(searchField.val()),
data: escape(searchField.attr('name'))+'='+escape(searchField.val()),
success: function(data) {
response( $.map(JSON.parse(data), function( name, id ) {
return { label: name, value: name, id: id };