aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/webui/static')
-rw-r--r--fg21sim/webui/static/js/configs.js12
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 ...