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

Showing section a little off #1

Open
jaminion opened this issue Nov 7, 2011 · 2 comments
Open

Showing section a little off #1

jaminion opened this issue Nov 7, 2011 · 2 comments

Comments

@jaminion
Copy link

jaminion commented Nov 7, 2011

Hello, I am reviewing this for possible use and noted when I was showing pages of 3, with a total of 7, on page 2 it would say "Showing 4 to 7 of 7" instead of "Showing 4 to 6 of 7". I am believing the fix is to change line 173 in commit 97a7db2, to just check if it is less than the total rows rather than the total rows minus one.

@neotohin
Copy link
Owner

neotohin commented Nov 9, 2011

Ok .. I will give it a spin . thanks for pointing. Can you fork the project and commit the changes that way i could just pull your commit.

@renishar
Copy link

We FIX it:

In the pagination library Jquery_pagination.php

change this line at line number 184 from

if( ( $curr_offset + $this->per_page ) < ( $this->total_rows -1 ) )

to

if( ( $curr_offset + $this->per_page ) <= ( $this->total_rows -1 ) )

And it will be working...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants