diff options
-rwxr-xr-x | bin/fg21sim-webui | 2 | ||||
-rw-r--r-- | fg21sim/webui/static/js/configs.js | 12 | ||||
-rw-r--r-- | fg21sim/webui/templates/results.html | 1 |
3 files changed, 12 insertions, 3 deletions
diff --git a/bin/fg21sim-webui b/bin/fg21sim-webui index b977bc6..cff8ce0 100755 --- a/bin/fg21sim-webui +++ b/bin/fg21sim-webui @@ -65,9 +65,7 @@ def main(): protocol="http", host="localhost", port=options.port)) logger.info("Hosts allowed to access the Web UI: {0}".format( options.hosts_allowed)) - print("DEBUG: before IOLoop") tornado.ioloop.IOLoop.current().start() - print("DEBUG: after IOLoop") if __name__ == "__main__": 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> |