diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-09 23:38:15 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-09 23:38:15 +0800 |
commit | e5a05c8e3c77aa292b7dd9bc4a2682148be873ac (patch) | |
tree | c029101511d50420876120ef20ea23e092b950a1 /fg21sim/webui/static/js | |
parent | 9516aec90f7f69b0e468d90e4f2d14a689b5e7db (diff) | |
download | fg21sim-e5a05c8e3c77aa292b7dd9bc4a2682148be873ac.tar.bz2 |
webui: Some minor updates
Diffstat (limited to 'fg21sim/webui/static/js')
-rw-r--r-- | fg21sim/webui/static/js/configs.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fg21sim/webui/static/js/configs.js b/fg21sim/webui/static/js/configs.js index 158d776..e3323d1 100644 --- a/fg21sim/webui/static/js/configs.js +++ b/fg21sim/webui/static/js/configs.js @@ -211,6 +211,15 @@ var setFormConfigs = function (data, errors) { /** + * Update the configuration form status indicator: "#conf-status" + */ +var updateFormConfigStatus = function () { + // TODO + console.error("NotImplementedError"); +}; + + +/** * Reset the server-side configurations to the defaults. * * @param {Object} ws - The opened WebSocket object, through which send @@ -291,11 +300,12 @@ var saveServerConfigFile = function (ws, clobber) { /** - * Handle the received message of type "configs".replace + * Handle the received message of type "configs" */ var handleMsgConfigs = function (msg) { if (msg.success) { setFormConfigs(msg.data, msg.errors); + updateFormConfigStatus(); } else { console.error("WebSocket 'configs' request failed with error:", msg.error); // TODO: add error code support and handle each specific error ... |