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:22:35 -0700 |
commit | 8cba40daf521d1740687f9a030f8472f980a4563 (patch) | |
tree | 81ba1983a3d47fad9bcee1a2b022ed440c6f4480 /lib/toaster/toastergui/templates/base.html | |
parent | 188c12901c9573285956cded76f27a0d6330c82e (diff) | |
download | bitbake-8cba40daf521d1740687f9a030f8472f980a4563.tar.gz |
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.
Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/base.html')
-rw-r--r-- | lib/toaster/toastergui/templates/base.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html index 2d2bfcaf9..8d4771c10 100644 --- a/lib/toaster/toastergui/templates/base.html +++ b/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("="); |