diff --git a/src/UI/AddMovies/AddMoviesLayout.js b/src/UI/AddMovies/AddMoviesLayout.js index 83bd2a673..46fe8aa65 100644 --- a/src/UI/AddMovies/AddMoviesLayout.js +++ b/src/UI/AddMovies/AddMoviesLayout.js @@ -39,7 +39,7 @@ module.exports = Marionette.Layout.extend({ RootFolderCollection.synced = true; }); - if (options.action == "search") { + if (options.action === "search") { this._addMovies(options); } }, diff --git a/src/UI/AddMovies/AddMoviesView.js b/src/UI/AddMovies/AddMoviesView.js index 7947a4792..7185d114f 100644 --- a/src/UI/AddMovies/AddMoviesView.js +++ b/src/UI/AddMovies/AddMoviesView.js @@ -49,7 +49,7 @@ module.exports = Marionette.Layout.extend({ this.throttledSearch = _.debounce(this.search, 1000, { trailing : true }).bind(this); - if (options.action == "search") { + if (options.action === "search") { this.search({term: options.query}); } diff --git a/src/UI/Movies/Index/MoviesIndexLayout.js b/src/UI/Movies/Index/MoviesIndexLayout.js index e0d22897f..3b78ff663 100644 --- a/src/UI/Movies/Index/MoviesIndexLayout.js +++ b/src/UI/Movies/Index/MoviesIndexLayout.js @@ -315,8 +315,8 @@ module.exports = Marionette.Layout.extend({ //this._showToolbar(); //debugger; - self = this; - setTimeout(function(){self._showToolbar();}, 0);//wtf??? + var self = this; + setTimeout(function(){self._showToolbar();}, 0); // jshint ignore:line //this._renderView(); }, diff --git a/src/UI/Movies/MoviesCollection.js b/src/UI/Movies/MoviesCollection.js index a4ec0fa87..a8c221d53 100644 --- a/src/UI/Movies/MoviesCollection.js +++ b/src/UI/Movies/MoviesCollection.js @@ -49,7 +49,7 @@ var filterModes = { "inCinemas", //function(model) { return model.getStatus() == "inCinemas"; } ] -}//Hacky, I know +}; //Hacky, I know var Collection = PageableCollection.extend({ @@ -273,7 +273,7 @@ var filterMode = Config.getValue("series.filterMode", "all"); var sortKey = Config.getValue("movie.sortKey", "sortTitle"); var sortDir = Config.getValue("movie.sortDirection", -1); var sortD = "asc"; -if (sortDir == 1) { +if (sortDir === 1) { sortD = "desc"; } diff --git a/src/UI/Movies/MoviesController.js b/src/UI/Movies/MoviesController.js index 5850fad16..d073225e0 100644 --- a/src/UI/Movies/MoviesController.js +++ b/src/UI/Movies/MoviesController.js @@ -28,9 +28,9 @@ module.exports = NzbDroneController.extend({ this._renderMovieDetails(query); //debugger; } else { - self = this; + var self = this; $.getJSON(window.NzbDrone.ApiRoot + '/movie/titleslug/'+query, { }, function(data) { - FullMovieCollection.add(data) + FullMovieCollection.add(data); self._renderMovieDetails(query); }); this.listenTo(FullMovieCollection, 'sync', function(model, options) { diff --git a/src/UI/Navbar/Search.js b/src/UI/Navbar/Search.js index e5a12e8bd..a4ed2765e 100644 --- a/src/UI/Navbar/Search.js +++ b/src/UI/Navbar/Search.js @@ -30,7 +30,7 @@ $.fn.bindSearch = function() { }, templates : { empty : function(input) { - return '
' + return '
'; }, }, source : substringMatcher() diff --git a/src/UI/Settings/NetImport/Options/NetImportOptionsView.js b/src/UI/Settings/NetImport/Options/NetImportOptionsView.js index 87271bab3..d6d1924a4 100644 --- a/src/UI/Settings/NetImport/Options/NetImportOptionsView.js +++ b/src/UI/Settings/NetImport/Options/NetImportOptionsView.js @@ -32,7 +32,7 @@ var view = Marionette.ItemView.extend({ var refresh=params.get('refresh'); if (oauth && refresh){ //var callback_url = window.location.href; - history.pushState('object', 'title', (window.location.href).replace(window.location.search, '')); + history.pushState('object', 'title', (window.location.href).replace(window.location.search, '')); // jshint ignore:line this.ui.authToken.val(oauth).trigger('change'); this.ui.refreshToken.val(refresh).trigger('change'); //Config.setValue("traktAuthToken", oauth); @@ -101,7 +101,7 @@ var view = Marionette.ItemView.extend({ //if (event.item.startsWith('tt')) { // newText = newText+'['+event.item+']'; //} - event.item = response['titleSlug'];//+' ('+response['year']+')-'+response['tmdbId']; + event.item = response.titleSlug;//+' ('+response['year']+')-'+response['tmdbId']; }); promise.error(function(request, status, error) {