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?
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?