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>
This commit is contained in:
parent
76615857f0
commit
2bd19cd026
|
@ -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("=");
|
||||
|
|
Loading…
Reference in New Issue