From 8a40bfd65b50d4e94260010bd10d90fa49865d9b Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 26 Mar 2018 23:16:04 +0300 Subject: [PATCH] UPD --- static/rbmd/script.js | 2 +- templates/rbmd/index.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/rbmd/script.js b/static/rbmd/script.js index 6c6d79f..5dc8939 100644 --- a/static/rbmd/script.js +++ b/static/rbmd/script.js @@ -1,4 +1,4 @@ - var a, selected_node, deadNode, node2; + $(function() { var url = "ws://" + location.host + "/socket"; var ws = new WebSocket(url); diff --git a/templates/rbmd/index.html b/templates/rbmd/index.html index b749b99..2f8769f 100644 --- a/templates/rbmd/index.html +++ b/templates/rbmd/index.html @@ -95,6 +95,7 @@ // }; // $('.tablink').css('display', 'block'); // + var a, selected_node, deadNode, node2; $('#mountForm').submit(function(event){ event.preventDefault(); $.ajax({