mirror of https://gitee.com/bigwinds/arangodb
jslint frontend
This commit is contained in:
parent
7f15bba720
commit
b7e6b5dfca
|
@ -1,4 +1,4 @@
|
|||
/*global window, Backbone, console */
|
||||
/*global window, Backbone */
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/*global Backbone, window */
|
||||
/* jshint strict: false */
|
||||
|
||||
window.ClusterStatisticsCollection = Backbone.Collection.extend({
|
||||
model: window.Statistics,
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*global window, Backbone, console */
|
||||
/*global window */
|
||||
(function() {
|
||||
"use strict";
|
||||
window.ClusterCoordinators = window.AutomaticRetryCollection.extend({
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*global window, Backbone, _, console */
|
||||
/*global window */
|
||||
(function() {
|
||||
|
||||
"use strict";
|
||||
|
@ -77,7 +77,7 @@
|
|||
});
|
||||
},
|
||||
|
||||
getList: function(callback) {
|
||||
getList: function() {
|
||||
throw "Do not use";
|
||||
/*
|
||||
var self = this;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*jshint unused: false */
|
||||
/*global window, $, Backbone, document, arangoCollectionModel*/
|
||||
/*global arangoHelper,dashboardView,arangoDatabase, _*/
|
||||
/*global arangoHelper, btoa, dashboardView, arangoDatabase, _*/
|
||||
|
||||
(function () {
|
||||
"use strict";
|
||||
|
@ -271,7 +271,7 @@
|
|||
logs: function (name, initialized) {
|
||||
this.checkUser();
|
||||
if (!initialized) {
|
||||
this.waitForInit(this.logs.bind(this), logs);
|
||||
this.waitForInit(this.logs.bind(this), name);
|
||||
return;
|
||||
}
|
||||
if (!this.logsView) {
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
|
||||
//start polling with interval
|
||||
window.setInterval(function() {
|
||||
if (window.location.hash === '#cluster'
|
||||
|| window.location.hash === '#') {
|
||||
if (window.location.hash === '#cluster'
|
||||
|| window.location.hash === '#') {
|
||||
var callback = function(data) {
|
||||
self.rerenderValues(data);
|
||||
self.rerenderGraphs(data);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
template: templateEngine.createTemplate("footerView.ejs"),
|
||||
|
||||
showServerStatus: function(isOnline) {
|
||||
if (!window.App.isCluster) {
|
||||
if (!window.App.isCluster) {
|
||||
if (isOnline === true) {
|
||||
$('#healthStatus').removeClass('negative');
|
||||
$('#healthStatus').addClass('positive');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*global window, $, Backbone, templateEngine, alert, _, d3, Dygraph, document */
|
||||
/*global window, $, Backbone, templateEngine, _, d3, Dygraph, document */
|
||||
|
||||
(function() {
|
||||
"use strict";
|
||||
|
|
Loading…
Reference in New Issue