diff --git a/UI/Mixins/backbone.Backgrid.mixin.js b/UI/Mixins/backbone.Backgrid.mixin.js
index 57b57a6d4..1059adb08 100644
--- a/UI/Mixins/backbone.Backgrid.mixin.js
+++ b/UI/Mixins/backbone.Backgrid.mixin.js
@@ -1,19 +1,19 @@
"use strict";
Backgrid.Column.prototype.defaults = {
- name: undefined,
- label: undefined,
- sortable: true,
- editable: false,
+ name : undefined,
+ label : undefined,
+ sortable : true,
+ editable : false,
renderable: true,
- formatter: undefined,
- cell: undefined,
+ formatter : undefined,
+ cell : undefined,
headerCell: 'nzbDrone'
};
Backgrid.TemplateBackedCell = Backgrid.Cell.extend({
className: '',
- template: 'Series/Index/Table/ControlsColumnTemplate',
+ template : 'Series/Index/Table/ControlsColumnTemplate',
render: function () {
var data = this.model.toJSON();
@@ -53,8 +53,12 @@ Backgrid.NzbDroneHeaderCell = Backgrid.HeaderCell.extend({
direction: function (dir) {
if (arguments.length) {
- if (this._direction) this.$el.children('i').removeClass(this._convertDirectionToIcon(this._direction));
- if (dir) this.$el.children('i').addClass(this._convertDirectionToIcon(dir));
+ if (this._direction) {
+ this.$el.children('i').removeClass(this._convertDirectionToIcon(this._direction));
+ }
+ if (dir) {
+ this.$el.children('i').addClass(this._convertDirectionToIcon(dir));
+ }
this._direction = dir;
}
@@ -74,7 +78,9 @@ Backgrid.NzbDroneHeaderCell = Backgrid.HeaderCell.extend({
if (leftVal === rightVal) {
return 0;
}
- else if (leftVal > rightVal) { return -1; }
+ else if (leftVal > rightVal) {
+ return -1;
+ }
return 1;
});
}
@@ -85,7 +91,9 @@ Backgrid.NzbDroneHeaderCell = Backgrid.HeaderCell.extend({
if (leftVal === rightVal) {
return 0;
}
- else if (leftVal < rightVal) { return -1; }
+ else if (leftVal < rightVal) {
+ return -1;
+ }
return 1;
});
}
@@ -120,9 +128,9 @@ Backgrid.NzbDronePaginator = Backgrid.Extension.Paginator.extend({
fastForwardHandleLabels: {
first: '',
- prev: '',
- next: '',
- last: ''
+ prev : '',
+ next : '',
+ last : ''
},
changePage: function (e) {
@@ -134,7 +142,7 @@ Backgrid.NzbDronePaginator = Backgrid.Extension.Paginator.extend({
return;
}
- if (!$(target).is('a')){
+ if (!$(target).is('a')) {
target = target.parent('a');
}
@@ -166,10 +174,10 @@ Backgrid.NzbDronePaginator = Backgrid.Extension.Paginator.extend({
var state = collection.state;
var pageIndex = $(e.target).text() * 1;
- collection.getPage(state.firstPage === 0 ? pageIndex - 1 : pageIndex);
+ collection.getPage(state.firstPage === 0 ? pageIndex - 1 :pageIndex);
},
preventLinkClick: function (e) {
e.preventDefault();
}
-});
\ No newline at end of file
+});
diff --git a/UI/Release/Model.js b/UI/Release/Model.js
index 1c0a2f94a..1a38f8706 100644
--- a/UI/Release/Model.js
+++ b/UI/Release/Model.js
@@ -1,5 +1,5 @@
"use strict";
-define(['app'], function (app) {
+define(['app'], function () {
NzbDrone.Release.Model = Backbone.Model.extend({
/* mutators: {
seasonNumber: function () {
diff --git a/UI/Shared/Modal/Region.js b/UI/Shared/Modal/Region.js
index e8a4f9fcd..9b8ba1dc2 100644
--- a/UI/Shared/Modal/Region.js
+++ b/UI/Shared/Modal/Region.js
@@ -15,7 +15,7 @@ define(function () {
return $el;
},
- showModal: function (view) {
+ showModal: function () {
this.$el.addClass('modal hide fade');
//need tab index so close on escape works
@@ -31,4 +31,4 @@ define(function () {
}
});
-});
\ No newline at end of file
+});
diff --git a/UI/Shared/SpinnerView.js b/UI/Shared/SpinnerView.js
index 8462854e9..704e71517 100644
--- a/UI/Shared/SpinnerView.js
+++ b/UI/Shared/SpinnerView.js
@@ -1,4 +1,6 @@
-define(['app'], function () {
+"use strict";
+
+define(['app'], function () {
NzbDrone.Shared.SpinnerView = Backbone.Marionette.ItemView.extend({
template : 'Shared/SpinnerTemplate',
className: 'nz-spinner row'