added jshint

This commit is contained in:
kayone
2013-11-10 20:09:11 -08:00
parent 9536c6c1bb
commit 47d924cff3
30 changed files with 177 additions and 127 deletions

View File

@@ -51,7 +51,7 @@ define(
return '';
}
return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
}
}
};
});

View File

@@ -1,8 +1,9 @@
'use strict';
define(
[
'marionette',
'backgrid.paginator'
], function (Paginator) {
], function (Marionette, Paginator) {
return Paginator.extend({
@@ -24,7 +25,7 @@ define(
changePage: function (e) {
e.preventDefault();
var target = $(e.target);
var target =this.$(e.target);
if (target.closest('li').hasClass('disabled')) {
return;
@@ -59,7 +60,7 @@ define(
}
var state = collection.state;
var pageIndex = $(e.target).text() * 1;
var pageIndex = target.text();
collection.getPage(state.firstPage === 0 ? pageIndex - 1 :pageIndex);
},

View File

@@ -14,10 +14,10 @@ define(
setTitle: function (title) {
if (title.toLocaleLowerCase() === 'nzbdrone') {
window.document.title = 'NzbDrone';
document.title = 'NzbDrone';
}
else {
window.document.title = title + ' - NzbDrone';
document.title = title + ' - NzbDrone';
}
}
});

View File

@@ -2,8 +2,9 @@
define(
[
'vent',
'jquery',
'signalR'
], function (vent) {
], function (vent, $) {
return {
appInitializer: function () {

View File

@@ -5,8 +5,9 @@ define(
'Shared/Toolbar/ButtonCollection',
'Shared/Toolbar/ButtonModel',
'Shared/Toolbar/Radio/RadioButtonCollectionView',
'Shared/Toolbar/Button/ButtonCollectionView'
], function (Marionette, ButtonCollection, ButtonModel, RadioButtonCollectionView, ButtonCollectionView) {
'Shared/Toolbar/Button/ButtonCollectionView',
'underscore'
], function (Marionette, ButtonCollection, ButtonModel, RadioButtonCollectionView, ButtonCollectionView,_) {
return Marionette.Layout.extend({
template: 'Shared/Toolbar/ToolbarLayoutTemplate',