This commit is contained in:
Anna Sudnitsina 2018-03-26 23:07:56 +03:00
parent 2e1d5835cc
commit f0eeef2a16

View File

@ -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) {