-
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 widget - inconsistency between pageSet and p.page #1516
Comments
Hi @iustin! Yes, the As a developer, you can change the Either way, I think it's too late to change this behavior now since it would not be backwards compatible, and I don't plan on creating a major revision with tablesorter. I will make this behavior consistent once I get around to working on Abelt again. |
Sounds good to not change the code - but what do you think about fixing the docs? I couldn't find exactly where in the repository are the doc pages to send a pull request, sorry. Basically just fixing the wording on p.page (which incorrectly states one-based indexing). |
Oops! Ok, I'll get that fixed. |
Ah, so the main page is simply index.html, wondering why I couldn't find that wording (I blame github search). Thanks for the quick fix! |
Hello,
I think the docs are incorrect regarding p.page (the widget). It says that both it, and the pageSet event, use a one-base index. While that is true for the pageSet, it looks like p.page is zero-based. You can see this inconsistency here:
(num being the argument to pageSet).
I think it'd be best that zero-based is always used, but if that's not possible (backwards compat), then at least the docs for p.page should be updated.
The text was updated successfully, but these errors were encountered: