diff --git a/src/UI/Movies/Index/MoviesIndexLayout.js b/src/UI/Movies/Index/MoviesIndexLayout.js index 2dc1d3e32..947000b06 100644 --- a/src/UI/Movies/Index/MoviesIndexLayout.js +++ b/src/UI/Movies/Index/MoviesIndexLayout.js @@ -370,7 +370,7 @@ module.exports = Marionette.Layout.extend({ }, _renderView : function() { - if (MoviesCollection.length === 0) { + if (MoviesCollection.length === 0 && !this.moviesCollection.isFiltered()) { this.moviesRegion.show(new EmptyView()); this.toolbar.close(); diff --git a/src/UI/Movies/MoviesCollection.js b/src/UI/Movies/MoviesCollection.js index 24285c9a9..c9a9badc0 100644 --- a/src/UI/Movies/MoviesCollection.js +++ b/src/UI/Movies/MoviesCollection.js @@ -261,6 +261,10 @@ var Collection = PageableCollection.extend({ this.fetch(); }, + isFiltered : function() { + return this.state.filterKey && this.state.filterKey !== 'all'; + }, + comparator: function (model) { return model.get('sortTitle'); }