diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-08-04 22:46:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-06 16:04:46 -0500 |
commit | 1e7707b63f91eb310e3207da4d9cdd831a4851c5 (patch) | |
tree | d195e2f2c2d622783b7b59f8431b528530784f16 | |
parent | aff29d2cd837df90a2897b9b75753e4af30f132e (diff) | |
download | poky-1e7707b63f91eb310e3207da4d9cdd831a4851c5.tar.gz |
bitbake: toastergui: libtoaster Throw an exception no url is specified
At a minimum for this typeahead to work we need a url parameter to call
for a JSON reponse of items to filter on.
(Bitbake rev: 80b214d93c5df63a251b807ca93f81f00c6bfeb2)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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){ |