Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82141

pagination issue when selecting all (-1) - last item class is failing to be disabled

$
0
0
when selecting all from the pagination drop down, value -1, the li.last list item is failing to past the test to add the class "disabled."


Lets say the list is 37 items long. When I debug the line of code
if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {

the values for oPaging.iTotalPages === -37

local values :
iEnd : -37


oPaging Object
oPaging.iEnd : 37,
oPaging.iFilteredTotal: 37
oPaging.iLength: -1
oPaging.iPage: 0,
oPaging.iStart: 0,
oPaging.iTotal: 37,
iTotalPages: -37

the disabling of the class works as expected when selecting all other values and when searching and returning zero search results

Can anyone suggest a fix for this bug?

Viewing all articles
Browse latest Browse all 82141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>