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({