summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-02-10 14:24:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 12:23:58 -0700
commit06f9059abc405197584acf189fac374047af395c (patch)
tree33744c2272f29caec94f2949a3fc0e3a630662eb /bitbake/lib/toaster/toastergui/templates
parent6fc246232aeacfacdf5e873e84be1485ce2c22e0 (diff)
downloadast2050-yocto-poky-06f9059abc405197584acf189fac374047af395c.zip
ast2050-yocto-poky-06f9059abc405197584acf189fac374047af395c.tar.gz
bitbake: toaster: array-assignment fix from Chome
Apparently the JS engine in Chrome can't handle assignments to an array, so I'm patching this up by using an intermediate array to hold the values. (Bitbake rev: 47f5fde1bd8cf2e6f7e5c4ec2534a2f9599c4ea2) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.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.html3
-rw-r--r--bitbake/lib/toaster/toastergui/templates/basetable_bottom.html3
2 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
index c8c1dae..2d2bfca 100644
--- a/bitbake/lib/toaster/toastergui/templates/base.html
+++ b/bitbake/lib/toaster/toastergui/templates/base.html
@@ -22,7 +22,8 @@
<script>
function reload_params(params) {
uri = window.location.href;
- [url, parameters] = uri.split("?");
+ splitlist = uri.split("?");
+ url = splitlist[0], parameters=splitlist[1];
// deserialize the call parameters
cparams = parameters.split("&");
nparams = {}
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
index 4eb303d..ac14363 100644
--- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
+++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
@@ -44,7 +44,8 @@
setting = save.split(';');
for ( i = 0; i < setting.length; i++) {
if (setting[i].length > 0) {
- [id, v] = setting[i].split(':');
+ splitlist = setting[i].split(':');
+ id = splitlist[0], v = splitlist[1];
if (v == 'true') {
$('.chbxtoggle#'+id).prop('checked', true);
}
OpenPOWER on IntegriCloud