From e5a05c8e3c77aa292b7dd9bc4a2682148be873ac Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 9 Nov 2016 23:38:15 +0800 Subject: webui: Some minor updates --- fg21sim/webui/static/js/configs.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'fg21sim/webui/static') 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 @@ -210,6 +210,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. * @@ -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 ... -- cgit v1.2.2