diff options
author | Ravi Chintakunta <ravi.chintakunta@timesys.com> | 2014-02-17 23:26:10 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 12:24:00 -0700 |
commit | 2bd19cd02623b7c5494c2f7057587252a75746c9 (patch) | |
tree | 69c09c1d0f82b5c14bd5fee01ec10fd94462e033 /bitbake | |
parent | 76615857f04a6a17baec7d5984a4345054547dae (diff) | |
download | poky-2bd19cd02623b7c5494c2f7057587252a75746c9.tar.gz |
bitbake: toaster: Bug fix in reload page with parameters
Fix the bug in reload_params function that was failing when
the page URL did not have any parameters.
(Bitbake rev: 8cba40daf521d1740687f9a030f8472f980a4563)
Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/base.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 2d2bfcaf99..8d4771c10e 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html | |||
@@ -25,7 +25,11 @@ function reload_params(params) { | |||
25 | splitlist = uri.split("?"); | 25 | splitlist = uri.split("?"); |
26 | url = splitlist[0], parameters=splitlist[1]; | 26 | url = splitlist[0], parameters=splitlist[1]; |
27 | // deserialize the call parameters | 27 | // deserialize the call parameters |
28 | cparams = parameters.split("&"); | 28 | if(parameters){ |
29 | cparams = parameters.split("&"); | ||
30 | }else{ | ||
31 | cparams = [] | ||
32 | } | ||
29 | nparams = {} | 33 | nparams = {} |
30 | for (i = 0; i < cparams.length; i++) { | 34 | for (i = 0; i < cparams.length; i++) { |
31 | temp = cparams[i].split("="); | 35 | temp = cparams[i].split("="); |