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

pull/2/head
Leonardo Galli 8 years ago
parent c5ca2babf7
commit 4263808360

@ -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();
}
}

@ -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));
},

Loading…
Cancel
Save