Skip to content

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

Closed
RoyXun wants to merge 5 commits into
botmonster:mainfrom
RoyXun:master
Closed

Fixed next button not working when maxVisible=1 bug#37
RoyXun wants to merge 5 commits into
botmonster:mainfrom
RoyXun:master

Conversation

@RoyXun
Copy link
Copy Markdown

@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.

@botmonster
Copy link
Copy Markdown
Owner

fixed in #67

@botmonster botmonster closed this Mar 15, 2026
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

Successfully merging this pull request may close these issues.

2 participants