diff options
Diffstat (limited to 'fg21sim/webui/static/js/websocket.js')
-rw-r--r-- | fg21sim/webui/static/js/websocket.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fg21sim/webui/static/js/websocket.js b/fg21sim/webui/static/js/websocket.js index 8f726b8..cff66b2 100644 --- a/fg21sim/webui/static/js/websocket.js +++ b/fg21sim/webui/static/js/websocket.js @@ -234,6 +234,24 @@ $(document).ready(function () { getServerTaskStatus(g_ws); }); + /* Logging messages controls */ + $("#log-toggle-debug").on("click", function () { + toggleLogMessages("debug"); + }); + $("#log-toggle-info").on("click", function () { + toggleLogMessages("info"); + }); + $("#log-toggle-warning").on("click", function () { + toggleLogMessages("warning"); + }); + $("#log-toggle-error").on("click", function () { + toggleLogMessages("error"); + toggleLogMessages("critical"); + }); + $("#log-delete").on("click", function () { + deleteLogMessages(); + }); + } else { // WebSocket NOT supported console.error("Oops, WebSocket is NOT supported!"); |