This commit is contained in:
Anna Sudnitsina 2018-03-26 22:23:45 +03:00
parent 755592c71f
commit 6a7427f6cd
2 changed files with 10 additions and 10 deletions

View File

@ -21,11 +21,11 @@ $(function() {
// var ws = new WebSocket('{{escape(ws)}}');
var cluster, selected_node, deadNode, node2;
ws.onopen = function() {ws.send(""); };
ws.onmessage = function (evt) {
cluster = JSON.parse(evt.data);
displayData(cluster);
};
// ws.onopen = function() {ws.send(""); };
// ws.onmessage = function (evt) {
// cluster = JSON.parse(evt.data);
// displayData(cluster);
// };
$('#mountForm').submit(function(event){
event.preventDefault();

View File

@ -86,11 +86,11 @@
<script>
var ws = new WebSocket('{{escape(ws)}}');
// var cluster, selected_node, deadNode, node2;
// ws.onopen = function() {ws.send(""); };
// ws.onmessage = function (evt) {
// cluster = JSON.parse(evt.data);
// displayData(cluster);
// };
ws.onopen = function() {ws.send(""); };
ws.onmessage = function (evt) {
cluster = JSON.parse(evt.data);
displayData(cluster);
};
//
// $('#mountForm').submit(function(event){
// event.preventDefault();