Changeset 4678
- Timestamp:
- 01/14/2017 02:05:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-site-cloner/wordcamp-site-cloner.js
r4280 r4678 48 48 49 49 // Container that will be scrolled within 50 this.$container = $( '#wcsc-cloner' ).parents( ' ul.accordion-section-content' );50 this.$container = $( '#wcsc-cloner' ).parents( '.wp-full-overlay-sidebar-content' ); 51 51 // Bind scrolling within the container to check for infinite scroll 52 52 this.$container.bind( 'scroll', _.throttle( this.scroller, 300 ) ); … … 159 159 160 160 paginate : function( pageIndex ) { 161 var collection = this; 161 var collection = this, 162 perPage = 20; 162 163 163 164 pageIndex = pageIndex || 0; 164 165 165 collection = _( collection.rest( 20* pageIndex ) );166 collection = _( collection.first( 20) );166 collection = _( collection.rest( perPage * pageIndex ) ); 167 collection = _( collection.first( perPage ) ); 167 168 168 169 return collection;
Note: See TracChangeset
for help on using the changeset viewer.