mirror of https://gitee.com/bigwinds/arangodb
24 lines
529 B
JavaScript
24 lines
529 B
JavaScript
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, */
|
|
/*global window, $, Backbone, document */
|
|
|
|
(function() {
|
|
"use strict";
|
|
$(document).ready(function() {
|
|
window.App = new window.ClusterRouter();
|
|
Backbone.history.start();
|
|
|
|
if(window.App.clusterPlan.get("plan")) {
|
|
if(window.App.clusterPlan.isAlive()) {
|
|
window.App.showCluster();
|
|
} else {
|
|
window.App.handleClusterDown();
|
|
}
|
|
} else {
|
|
window.App.planScenario();
|
|
}
|
|
|
|
window.App.handleResize();
|
|
});
|
|
|
|
}());
|