Sprach- und Stadt-Wechsel geht wieder

This commit is contained in:
2024-08-26 13:11:49 +00:00
parent 8d99c73386
commit 6e814fe338
9 changed files with 1241 additions and 1042 deletions
+8 -2
View File
@@ -31,7 +31,7 @@ import * as utils from "./chart_utilities.js";
typ: 'maptab',
show: ['ccity', 'odth'],
val: ['centercity', 'olderthan'],
param: ['center.name', 'weeks']
param: [["center","name"], 'weeks']
},
{
typ: 'livetab',
@@ -78,7 +78,13 @@ import * as utils from "./chart_utilities.js";
if(elem.type === 'checkbox') {
val = elem.checked
}
params[setting[i].param[j]] = val
let x = setting[i].param[j]
console.log('x: ', x)
if ( Array.isArray(x)) {
params[setting[i].param[j][0]][setting[i].param[j][1]] = val
} else {
params[setting[i].param[j]] = val
}
}
break
}