Skip to content
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

Next Page button inoperable #7

Closed
jkarwisch opened this issue Aug 11, 2020 · 2 comments
Closed

Next Page button inoperable #7

jkarwisch opened this issue Aug 11, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@jkarwisch
Copy link

When viewing a log file that spans multiple pages, the Next Page button is enabled, but when pressed, it does not display the next page. The individual page number buttons work as expected, as well as the Previous Page button.

Using version 1.07 on the package.

@agusmakmun
Copy link
Owner

@jkarwisch thank you for reporting this issue. I think it similiar with #issue 1, the jquery.dataTables.min.js for somehow need to parse the variable with parseInt.

@agusmakmun agusmakmun added the bug Something isn't working label Aug 29, 2020
agusmakmun added a commit that referenced this issue Aug 29, 2020
@agusmakmun
Copy link
Owner

I found a best solution for this: https://stackoverflow.com/a/29396574/6396981

Since this recited code seems to be outdated, I have another possible bugfix for anyone experiencing this problem.
This behaviour simply occurs whenever you define within the options:

"pageLength": "30" //bad

instead of

"pageLength": 30 //good

DataTables interprets this as 030 for its internal counters, which leads to this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants