From a9549e839df328d7be561e333c4fe40047037799 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 31 Jul 2015 15:09:14 +0300 Subject: [PATCH] bitbake: toastergui: libtoaster Make sure we always pass format=json The new API for typeahead requires that we pass this parameter in to make sure we get a JSON response. (Bitbake rev: 2f8951d6e640d86f605b082aab4a950dab9065ad) Signed-off-by: Michael Wood Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 079bbcb0b8..115df80a96 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -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);