File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 16871687 return false ;
16881688 } ) ;
16891689
1690+ var tableHeight = $table . height ( ) ;
1691+ var endTable = false ;
1692+
16901693 // Infinite scrolling event
16911694 $listView . bind ( 'scroll' , function ( event ) {
16921695 if ( args . listView && args . listView . disableInfiniteScrolling ) return false ;
16971700 var loadMoreData = $listView . scrollTop ( ) >= ( $table . height ( ) - $listView . height ( ) ) - $listView . height ( ) / 4 ;
16981701 var context = $listView . data ( 'view-args' ) . context ;
16991702
1700- if ( loadMoreData ) {
1703+ if ( loadMoreData && ! endTable ) {
17011704 page = page + 1 ;
17021705
17031706 var filterBy = {
17251728 reorder : listViewData . reorder ,
17261729 detailView : listViewData . detailView
17271730 } ) ;
1731+ $table . height ( ) == tableHeight ? endTable = true : tableHeight = $table . height ( ) ;
17281732 }
17291733 } , 500 ) ;
17301734
You can’t perform that action at this time.
0 commit comments