upd
This commit is contained in:
parent
755592c71f
commit
6a7427f6cd
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user