Another problem with pagination..
Another problem with pagination..
When I use full_numbers pagination type, it shows more pages than it should.
E.g. I have 14 entries, so it should be 2 pages, but it shows 3 pages.
On second page it says "Showing 11 to 14 of 14 entries", so it has calculated it correctly, but shows button for third page.
E.g. I have 14 entries, so it should be 2 pages, but it shows 3 pages.
On second page it says "Showing 11 to 14 of 14 entries", so it has calculated it correctly, but shows button for third page.
This discussion has been closed.
Replies
For the meantime find
"var iPages = Math.ceil((oSettings.fnRecordsDisplay()-1) / oSettings._iDisplayLength) + 1;"
and change it to
"var iPages = Math.ceil((oSettings.fnRecordsDisplay()-1) / oSettings._iDisplayLength);"
var iPages = Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength);
Enjoy it.
Regards,
Allan