aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/webui/static/js')
-rw-r--r--fg21sim/webui/static/js/configs.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/fg21sim/webui/static/js/configs.js b/fg21sim/webui/static/js/configs.js
index 87919e2..ed1e177 100644
--- a/fg21sim/webui/static/js/configs.js
+++ b/fg21sim/webui/static/js/configs.js
@@ -587,8 +587,13 @@ $(document).ready(function () {
var name = $(e.target).attr("name");
var value = getFormConfigSingle(name);
// Synchronize the changed form configuration to the server
- // NOTE: Use the "computed property names" available in ECMAScript 6
- setServerConfigs(ajax_url, {[name]: value})
+ // NOTE:
+ // Use the "computed property names" available in ECMAScript 6
+ // (IE 11 not support this!)
+ // var data = {[name]: value};
+ var data = {};
+ data[name] = value;
+ setServerConfigs(ajax_url, data)
.then(function () { validateServerConfigs(ajax_url); })
.done(function () { updateFormConfigStatus(); });
});