207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
-
+
-
-
-
-
-
-
-
-
+
+
+
-
+
|
function _displayGCOptions (dSavedOptions) {
if (dSavedOptions.hasOwnProperty("gc_options")) {
displayGCOptions(dSavedOptions.gc_options);
}
}
function displayGCOptions (dOptions) {
function displayGCOptions (oOptions) {
try {
// dOptions is supposed to be a Map
if (bChrome) {
// JS crap again. Chrome can’t store/send Map object.
dOptions = helpers.objectToMap(dOptions);
}
for (let [sOpt, bVal] of dOptions) {
if (document.getElementById("option_"+sOpt)) {
document.getElementById("option_"+sOpt).checked = bVal;
for (let sParam in oOptions) {
if (document.getElementById("option_"+sParam)) {
document.getElementById("option_"+sParam).checked = oOptions[sParam];
}
}
}
catch (e) {
showError(e);
console.log(dOptions);
console.log(oOptions);
}
}
|