summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorRavi Chintakunta <ravi.chintakunta@timesys.com>2014-02-17 23:26:10 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 12:24:00 -0700
commit2bd19cd02623b7c5494c2f7057587252a75746c9 (patch)
tree69c09c1d0f82b5c14bd5fee01ec10fd94462e033 /bitbake/lib/toaster/toastergui/templates
parent76615857f04a6a17baec7d5984a4345054547dae (diff)
downloadast2050-yocto-poky-2bd19cd02623b7c5494c2f7057587252a75746c9.zip
ast2050-yocto-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/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/base.html6
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 2d2bfca..8d4771c 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) {
splitlist = uri.split("?");
url = splitlist[0], parameters=splitlist[1];
// deserialize the call parameters
- cparams = parameters.split("&");
+ if(parameters){
+ cparams = parameters.split("&");
+ }else{
+ cparams = []
+ }
nparams = {}
for (i = 0; i < cparams.length; i++) {
temp = cparams[i].split("=");
OpenPOWER on IntegriCloud