aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/webui')
-rw-r--r--fg21sim/webui/static/js/configs.js12
-rw-r--r--fg21sim/webui/templates/results.html1
2 files changed, 12 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 ...
diff --git a/fg21sim/webui/templates/results.html b/fg21sim/webui/templates/results.html
index f605f03..80e025a 100644
--- a/fg21sim/webui/templates/results.html
+++ b/fg21sim/webui/templates/results.html
@@ -9,4 +9,5 @@
<hr />
<p>Simulation results go here :)</p>
+ <p>TODO :(</p>
</section>