Fixed pagination in which it was not showing the correct number of pages due to use of the incorrect variable.

pull/30/head
btafoya 11 years ago
parent cbe8320d3a
commit 065c349d6c

@ -27,7 +27,7 @@ $.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
"iPage": oSettings._iDisplayLength === -1 ?
0 : Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
"iTotalPages": oSettings._iDisplayLength === -1 ?
0 : Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
0 : Math.ceil( oSettings.fnRecordsTotal() / oSettings._iDisplayLength )
};
}

Loading…
Cancel
Save