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.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
index 115df80a96..22377f08f4 100644
--- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
+++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
@@ -34,7 +34,14 @@ var libtoaster = (function (){
34 selectedCB(itemObj); 34 selectedCB(itemObj);
35 return item; 35 return item;
36 }, 36 },
37 matcher: function(item) { return ~item.name.toLowerCase().indexOf(this.query.toLowerCase()); }, 37 matcher: function(item) {
38 if (!item.hasOwnProperty('name')) {
39 console.log("Name property missing in data");
40 return 0;
41 }
42
43 return ~item.name.toLowerCase().indexOf(this.query.toLowerCase());
44 },
38 highlighter: function (item) { 45 highlighter: function (item) {
39 if (item.hasOwnProperty('detail')) 46 if (item.hasOwnProperty('detail'))
40 /* Use jquery to escape the value as text into a span */ 47 /* Use jquery to escape the value as text into a span */