summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/libtoaster.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/libtoaster.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
index 8d1d20f133..43930a2c30 100644
--- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
+++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
@@ -21,6 +21,9 @@ var libtoaster = (function (){
21 var xhrReq; 21 var xhrReq;
22 22
23 jQElement.typeahead({ 23 jQElement.typeahead({
24 // each time the typeahead's choices change, a
25 // "typeahead-choices-change" event is fired with an object
26 // containing the available choices in a "choices" property
24 source: function(query, process){ 27 source: function(query, process){
25 xhrParams.search = query; 28 xhrParams.search = query;
26 29
@@ -36,6 +39,8 @@ var libtoaster = (function (){
36 39
37 xhrReq = null; 40 xhrReq = null;
38 41
42 jQElement.trigger("typeahead-choices-change", {choices: data.results});
43
39 return process(data.results); 44 return process(data.results);
40 }); 45 });
41 }, 46 },