aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/webui/static')
-rw-r--r--fg21sim/webui/static/js/websocket.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/fg21sim/webui/static/js/websocket.js b/fg21sim/webui/static/js/websocket.js
index 968a3de..0c566c6 100644
--- a/fg21sim/webui/static/js/websocket.js
+++ b/fg21sim/webui/static/js/websocket.js
@@ -208,7 +208,8 @@ $(document).ready(function () {
var name = $(e.target).attr("name");
var value = getFormConfigSingle(name);
// Sync form configuration to the server
- setServerConfigs(g_ws, {name: value});
+ // NOTE: Use the "computed property names" available in ECMAScript 6
+ setServerConfigs(g_ws, {[name]: value});
});
} else {