|
|
@ -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;
|
|
|
|