diff options
Diffstat (limited to 'plugins/jetpack/modules/infinite-scroll/infinity.js')
-rw-r--r-- | plugins/jetpack/modules/infinite-scroll/infinity.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/jetpack/modules/infinite-scroll/infinity.js b/plugins/jetpack/modules/infinite-scroll/infinity.js index a52cbfd0..010b7148 100644 --- a/plugins/jetpack/modules/infinite-scroll/infinity.js +++ b/plugins/jetpack/modules/infinite-scroll/infinity.js @@ -70,7 +70,7 @@ Scroller = function( settings ) { self.thefooter(); // Fire the refresh self.refresh(); - self.determineURL(); // determine the url + self.determineURL(); // determine the url } }, 250 ); @@ -131,13 +131,14 @@ Scroller.prototype.render = function( response ) { */ Scroller.prototype.query = function() { return { - page : this.page + this.offset, // Load the next page. - currentday : this.currentday, - order : this.order, - scripts : window.infiniteScroll.settings.scripts, - styles : window.infiniteScroll.settings.styles, - query_args : window.infiniteScroll.settings.query_args, - last_post_date : window.infiniteScroll.settings.last_post_date + page : this.page + this.offset, // Load the next page. + currentday : this.currentday, + order : this.order, + scripts : window.infiniteScroll.settings.scripts, + styles : window.infiniteScroll.settings.styles, + query_args : window.infiniteScroll.settings.query_args, + query_before : window.infiniteScroll.settings.query_before, + last_post_date: window.infiniteScroll.settings.last_post_date }; }; |