-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Pager] Setting starting page not working? #1085
Comments
Hi @a-mair! I've never heard of that being an issue. I could help troubleshoot the problem if you would please share some code. |
Hi Mottie, I've simply taken http://mottie.github.io/tablesorter/docs/example-pager.html and modified the "pagerOptions" to read "page: 2, savePages: false". Regards, |
Hi @a-mair! That appears to be a bug 😿 .... if you look at the console, you'll see it's trying to set the page to -1 LOL. I'll sort it out and get that fixed ASAP. |
Hi @Mottie, thanks for the quick fix! Regards, |
Ok, that should now be fixed in the master branch. |
Hi @Mottie, No, it still doesn't work. For debugging I modified the example-pager.html to initialize the tablesorter like this: .tablesorter({
theme: 'blue',
widthFixed: true,
widgets: ['zebra', 'filter'] // Added 'filter'
}) I modified the "pagerOptions" to read "page: 2, savePages: false" and in jquery.tablesorter.pager.js I changed "getTotalPages" like this:
Now I get the following console log in FireBug:
There has been no filtering done yet, well actually there's no filter text set yet. In that state there's no "" where one can enter filter text. Regards, |
Ok, that should finally fix the problem crosses fingers. |
@Mottie This doesn't work if I set this in "pagerOptions", but it works if I trigger "pageSet". Regards, |
Hi,
I try to use the "page" option for the tablesorterpager addon but it doesn't work. No matter how much content the table has, always page 0 will be shown, e.g.: {..., page: 2, savePages: false, ...}
Is this a known issue?
Best regards,
Andreas
The text was updated successfully, but these errors were encountered: