aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static/js/websocket.js
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-17 22:33:44 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-17 22:33:44 +0800
commitaa34cd9d5fc82442d852c3a89e09b0bb978a4096 (patch)
tree049f01f4149ae89854bf2bf16f574bc9395fe61f /fg21sim/webui/static/js/websocket.js
parent4c4531530eaa94be2abeec2b28e343c312183334 (diff)
downloadfg21sim-aa34cd9d5fc82442d852c3a89e09b0bb978a4096.tar.bz2
webui: console.js: Change to use AJAX instead of WebSocket messages
Also support modal dialog for confirmation and operation results.
Diffstat (limited to 'fg21sim/webui/static/js/websocket.js')
-rw-r--r--fg21sim/webui/static/js/websocket.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/webui/static/js/websocket.js b/fg21sim/webui/static/js/websocket.js
index 45d550d..b0fe1b9 100644
--- a/fg21sim/webui/static/js/websocket.js
+++ b/fg21sim/webui/static/js/websocket.js
@@ -135,7 +135,7 @@ var connectWebSocket = function (url) {
handleWebSocketMsgConfigs(msg);
}
else if (msg.type === "console") {
- handleMsgConsole(msg);
+ handleWebSocketMsgConsole(msg);
}
else if (msg.type === "results") {
console.error("NotImplementedError");