diff options
| -rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index c9ff6507ef..587f51fff9 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js | |||
| @@ -15,6 +15,8 @@ var libtoaster = (function (){ | |||
| 15 | * arg of the item. | 15 | * arg of the item. |
| 16 | */ | 16 | */ |
| 17 | function _makeTypeahead (jQElement, xhrUrl, xhrParams, selectedCB) { | 17 | function _makeTypeahead (jQElement, xhrUrl, xhrParams, selectedCB) { |
| 18 | if (!xhrUrl || xhrUrl.length === 0) | ||
| 19 | throw("No url to typeahead supplied"); | ||
| 18 | 20 | ||
| 19 | jQElement.typeahead({ | 21 | jQElement.typeahead({ |
| 20 | source: function(query, process){ | 22 | source: function(query, process){ |
