Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1461 from dwaltz/master
Browse files Browse the repository at this point in the history
Hiding footer for infinite scrolling view
  • Loading branch information
swilliamset committed Aug 17, 2015
2 parents 1a44c93 + 3436270 commit 5cfff7c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions js/repeater.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@
},

infiniteScrolling: function (enable, options) {
var itemization = this.$element.find('.repeater-itemization');
var pagination = this.$element.find('.repeater-pagination');
var footer = this.$element.find('.repeater-footer');
var viewport = this.$element.find('.repeater-viewport');
var cont, data;

options = options || {};
Expand All @@ -337,8 +337,10 @@
delete options.dataSource;
delete options.end;
this.infiniteScrollingOptions = options;
itemization.hide();
pagination.hide();
viewport.css({
height: viewport.height() + footer.outerHeight()
});
footer.hide();
} else {
cont = this.infiniteScrollingCont;
data = cont.data();
Expand All @@ -350,8 +352,10 @@
this.infiniteScrollingEnabled = false;
this.infiniteScrollingEnd = null;
this.infiniteScrollingOptions = {};
itemization.show();
pagination.show();
viewport.css({
height: viewport.height() - footer.outerHeight()
});
footer.show();
}
},

Expand Down

0 comments on commit 5cfff7c

Please sign in to comment.