|
@@ -19,6 +19,7 @@ var libtoaster = (function (){
|
|
|
jQElement.typeahead({
|
|
|
source: function(query, process){
|
|
|
xhrParams.search = query;
|
|
|
+ xhrParams.format = "json";
|
|
|
$.getJSON(xhrUrl, this.options.xhrParams, function(data){
|
|
|
if (data.error !== "ok") {
|
|
|
console.log("Error getting data from server "+data.error);
|