Fix only one movie showing. Fix more button not showing up.

This commit is contained in:
Leonardo Galli 2017-01-17 13:21:40 +01:00
commit 4263808360
2 changed files with 192 additions and 189 deletions

View file

@ -160,7 +160,7 @@ module.exports = Marionette.Layout.extend({
this.searchResult.show(new NotFoundView({ term : this.collection.term }));
} else {
this.searchResult.show(this.resultCollectionView);
if (!this.showingAll && this.isExisting) {
if (!this.showingAll) {
this.ui.loadMore.show();
}
}

View file

@ -9,7 +9,10 @@ module.exports = Marionette.CollectionView.extend({
initialize : function(options) {
this.showExisting = true;
this.isExisting = options.isExisting;
this.showing = 5;
if (this.isExisting) {
this.showing = 1;
}
vent.on(vent.Commands.ShowExistingCommand, this._onExistingToggle.bind(this));
},