version: 1.9.4
line: 11713
function:
The number of pages is counted using fnRecordsDisplay(), which returns display records count instead of all records count. This can be fixed by replacing this call with fnRecordsTotal():
This wrong function call leads to the paging navigation buttons being disabled, as dataTables thinks total record count is equal to display record count.
line: 11713
function:
"fnUpdate": function ( oSettings, fnCallbackDraw )line contents:
var iPages = Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength);
The number of pages is counted using fnRecordsDisplay(), which returns display records count instead of all records count. This can be fixed by replacing this call with fnRecordsTotal():
var iPages = Math.ceil((oSettings.fnRecordsTotal()) / oSettings._iDisplayLength);
This wrong function call leads to the paging navigation buttons being disabled, as dataTables thinks total record count is equal to display record count.