mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-23 22:25:14 -04:00
Addressing jshint warnings (#1050)
* Cleaning up some jsLiniting problems * fix jshint issue with variablle declaration This shouldn't be an issue because of hoisting but, jshint is finicky.
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = NzbDroneController.extend({
|
||||
//this.route('', this.series);
|
||||
this.route('series', this.series);
|
||||
this.route('series/:query', this.seriesDetails);
|
||||
|
||||
|
||||
this._originalInit.apply(this, arguments);
|
||||
},
|
||||
|
||||
@@ -21,13 +21,13 @@ module.exports = NzbDroneController.extend({
|
||||
},
|
||||
|
||||
seriesDetails : function(query) {
|
||||
console.warn(AppLayout.mainRegion)
|
||||
|
||||
console.warn(AppLayout.mainRegion);
|
||||
|
||||
var series = SeriesCollection.where({ titleSlug : query });
|
||||
|
||||
|
||||
if (series.length !== 0) {
|
||||
var targetSeries = series[0];
|
||||
|
||||
|
||||
this.setTitle(targetSeries.get('title'));
|
||||
this.showMainRegion(new SeriesDetailsLayout({ model : targetSeries }));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user