aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-09 23:38:15 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-09 23:38:15 +0800
commite5a05c8e3c77aa292b7dd9bc4a2682148be873ac (patch)
treec029101511d50420876120ef20ea23e092b950a1 /fg21sim/webui
parent9516aec90f7f69b0e468d90e4f2d14a689b5e7db (diff)
downloadfg21sim-e5a05c8e3c77aa292b7dd9bc4a2682148be873ac.tar.bz2
webui: Some minor updates
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>