Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Fixed next button not working when maxVisible=1 bug #37

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

RoyXun
Copy link

@RoyXun RoyXun commented Apr 7, 2016

Fixed issue #30

Furthermore, I felt a bit confused about the leap implementation. For example,

$('.demo').bootpag({
total: 27,
page: 16,
maxVisible: 10,
leaps: true
});

when I click the prev button,it goes to page 10——which is absolutely right, while it goes to page 17 instead of page 21 when I click the next button because the page is less than (total - maxVisible).It may confuse the user.So, I modified the leap implementation so that it will go to next(/previous) set of pages once the user click the next(/previous) button as long as it is legal.

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

Successfully merging this pull request may close these issues.

1 participant