|
|
|
@ -18,13 +18,15 @@
|
|
|
|
|
|
|
|
|
|
$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
|
|
|
|
|
{
|
|
|
|
|
return {
|
|
|
|
|
"iStart": oSettings._iDisplayStart,
|
|
|
|
|
"iEnd": oSettings.fnDisplayEnd(),
|
|
|
|
|
"iLength": oSettings._iDisplayLength,
|
|
|
|
|
"iTotal": oSettings.fnRecordsTotal(),
|
|
|
|
|
"iFilteredTotal": oSettings.fnRecordsDisplay(),
|
|
|
|
|
"iPage": Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
|
|
|
|
|
"iTotalPages": Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
|
|
|
|
|
};
|
|
|
|
|
return {
|
|
|
|
|
"iStart": oSettings._iDisplayStart,
|
|
|
|
|
"iEnd": oSettings.fnDisplayEnd(),
|
|
|
|
|
"iLength": oSettings._iDisplayLength,
|
|
|
|
|
"iTotal": oSettings.fnRecordsTotal(),
|
|
|
|
|
"iFilteredTotal": oSettings.fnRecordsDisplay(),
|
|
|
|
|
"iPage": oSettings._iDisplayLength === -1 ?
|
|
|
|
|
0 : Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
|
|
|
|
|
"iTotalPages": oSettings._iDisplayLength === -1 ?
|
|
|
|
|
0 : Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|