1
0
Fork 0
arangodb/js/apps/system/aardvark/clusterFrontend/js/routers/startApp.js

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();
});
}());