diff options
Diffstat (limited to 'fg21sim')
-rw-r--r-- | fg21sim/webui/static/js/configs.js | 9 | ||||
-rw-r--r-- | fg21sim/webui/templates/index.html | 2 |
2 files changed, 8 insertions, 3 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(); }); }); diff --git a/fg21sim/webui/templates/index.html b/fg21sim/webui/templates/index.html index 9e47472..27fac3d 100644 --- a/fg21sim/webui/templates/index.html +++ b/fg21sim/webui/templates/index.html @@ -17,7 +17,7 @@ <ul class="navigation-list float-right"> <li class="navigation-item"><a class="navigation-link button button-outline" href="#configs" title="Configurations"><span class="fa fa-wrench" aria-hidden="true"></span> Configurations</a></li> <li class="navigation-item"><a class="navigation-link button button-outline" href="#console" title="Console"><span class="fa fa-gamepad" aria-hidden="true"></span> Console</a></li> - <li class="navigation-item"><a class="navigation-link button button-outline" href="#results" title="Results"><span class="fa fa-files-o aria-hidden="true"></span> Results</a></li> + <li class="navigation-item"><a class="navigation-link button button-outline" href="#results" title="Results"><span class="fa fa-files-o" aria-hidden="true"></span> Results</a></li> </ul> {% end %} {# block header_contents #} |