1
0
Fork 0

handle cluster shutdown

This commit is contained in:
gschwab 2014-02-27 17:12:30 +01:00
parent 001551dc9e
commit 89c784361c
2 changed files with 14 additions and 2 deletions

View File

@ -11,7 +11,8 @@
"planSymmetrical" : "planSymmetric",
"planAsymmetrical" : "planAsymmetric",
"shards" : "showShards",
"showCluster" : "showCluster"
"showCluster" : "showCluster",
"handleClusterDown" : "handleClusterDown"
},
getNewRoute: function(last) {

View File

@ -401,7 +401,18 @@
},
clusterShutdown : function() {
window.App.navigate("", {trigger: true});
this.stopUpdating();
$.ajax({
cache: false,
type: "GET",
async: false, // sequential calls!
url: "cluster/shutdown",
success: function(data) {
},
error: function(data) {
}
});
window.App.navigate("handleClusterDown", {trigger: true});
}
});