mirror of
https://git.yoctoproject.org/poky
synced 2026-06-04 02:00:04 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
6fc246232a
commit
06f9059abc
@@ -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 = {}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user