Bug in pagination plugin?
Bug in pagination plugin?
Hello,
I think I found a bug in the pagination plugin. It occurs when there is just one entry on the last page and you enter a page higher than the last.
If you have 26 sites total with 251 entries, 10 entries per page are shown and you type in 30 you don't get the expected page 26 but the page 25.
This line may be the problem:
oSettings._iDisplayStart = (Math.ceil((oSettings.fnRecordsDisplay()-1) /
oSettings._iDisplayLength)-1) * oSettings._iDisplayLength;
Right now I have no workaround for this issue, maybe someone has the same problem?
Answers
Could you confirm which pagination plug-in this is in please?
Allan
Hello Allan,
thanks for the quick response,
This is the plugin which i am talking about:
http://www.datatables.net/plug-ins/pagination/input
Kind regards,
Miriam
Might be worth trying the version from the Git repo as it had some updates.
Allan