1
0
Fork 0

jslint frontend

This commit is contained in:
hkernbach 2016-04-14 15:38:39 +02:00
parent 7f15bba720
commit b7e6b5dfca
8 changed files with 12 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/*global window, Backbone, console */
/*global window, Backbone */
(function() {
"use strict";

View File

@ -1,4 +1,6 @@
/*global Backbone, window */
/* jshint strict: false */
window.ClusterStatisticsCollection = Backbone.Collection.extend({
model: window.Statistics,

View File

@ -1,4 +1,4 @@
/*global window, Backbone, console */
/*global window */
(function() {
"use strict";
window.ClusterCoordinators = window.AutomaticRetryCollection.extend({

View File

@ -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;

View File

@ -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) {

View File

@ -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);

View File

@ -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');

View File

@ -1,4 +1,4 @@
/*global window, $, Backbone, templateEngine, alert, _, d3, Dygraph, document */
/*global window, $, Backbone, templateEngine, _, d3, Dygraph, document */
(function() {
"use strict";