From f0eeef2a163dc6bcf112cba06c43f5bce55c4768 Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 26 Mar 2018 23:07:56 +0300 Subject: [PATCH] upd --- static/rbmd/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/rbmd/script.js b/static/rbmd/script.js index 1fa6c62..006d2da 100644 --- a/static/rbmd/script.js +++ b/static/rbmd/script.js @@ -1,7 +1,8 @@ + var a, selected_node, deadNode, node2; $(function() { var url = "ws://" + location.host + "/socket"; var ws = new WebSocket(url); - var a, selected_node, deadNode, node2; + ws.onopen = function() {ws.send(""); }; ws.onmessage = function (evt) { a = JSON.parse(evt.data); @@ -9,7 +10,7 @@ $(function() { }; $('.tablink').css('display', 'block'); - + $('#mountFormTrigger').click(function(event){ var htmlSelect = ''; a.quorum.forEach(function(item) {