mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
added jshint
This commit is contained in:
@@ -51,7 +51,7 @@ define(
|
||||
return '';
|
||||
}
|
||||
|
||||
return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
define(
|
||||
[
|
||||
'vent',
|
||||
'jquery',
|
||||
'signalR'
|
||||
], function (vent) {
|
||||
], function (vent, $) {
|
||||
return {
|
||||
|
||||
appInitializer: function () {
|
||||
|
||||
@@ -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',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user