mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
10 Movies are now shown on discover as well as search results.
Show more should also be more consistent now.
This commit is contained in:
parent
e94591a290
commit
7ed0db10cb
2 changed files with 5 additions and 2 deletions
|
@ -123,6 +123,8 @@ module.exports = Marionette.Layout.extend({
|
||||||
onShow : function() {
|
onShow : function() {
|
||||||
this.ui.discoverBefore.hide();
|
this.ui.discoverBefore.hide();
|
||||||
this.ui.moviesSearch.focus();
|
this.ui.moviesSearch.focus();
|
||||||
|
this.ui.loadMore.hide();
|
||||||
|
|
||||||
if (this.isDiscover) {
|
if (this.isDiscover) {
|
||||||
this.ui.discoverBefore.show();
|
this.ui.discoverBefore.show();
|
||||||
}
|
}
|
||||||
|
@ -189,6 +191,7 @@ module.exports = Marionette.Layout.extend({
|
||||||
_showResults : function() {
|
_showResults : function() {
|
||||||
if (!this.isClosed) {
|
if (!this.isClosed) {
|
||||||
if (this.collection.length === 0) {
|
if (this.collection.length === 0) {
|
||||||
|
this.ui.loadMore.hide();
|
||||||
if (this.isDiscover) {
|
if (this.isDiscover) {
|
||||||
this.searchResult.show(new DiscoverEmptyView());
|
this.searchResult.show(new DiscoverEmptyView());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -10,7 +10,7 @@ module.exports = Marionette.CollectionView.extend({
|
||||||
initialize : function(options) {
|
initialize : function(options) {
|
||||||
this.showExisting = true;
|
this.showExisting = true;
|
||||||
this.isExisting = options.isExisting;
|
this.isExisting = options.isExisting;
|
||||||
this.showing = 5;
|
this.showing = 10;
|
||||||
if (this.isExisting) {
|
if (this.isExisting) {
|
||||||
this.showing = 1;
|
this.showing = 1;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ module.exports = Marionette.CollectionView.extend({
|
||||||
|
|
||||||
showMore : function() {
|
showMore : function() {
|
||||||
var pos = $(window).scrollTop();
|
var pos = $(window).scrollTop();
|
||||||
this.showing += 5;
|
this.showing += 10;
|
||||||
this.render();
|
this.render();
|
||||||
$(window).scrollTop(pos);
|
$(window).scrollTop(pos);
|
||||||
return this.showing >= this.collection.length;
|
return this.showing >= this.collection.length;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue