Skip to content

Handling border cases and changing max_pages behaviour #2

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

Merged
merged 4 commits into from
Feb 25, 2014

Conversation

asavin
Copy link

@asavin asavin commented Feb 24, 2014

Max_pages param now means window size to the left or right from the current page.

index_html_

Better handling of the border cases, not displaying "..." unless needed:

index_html_-3


if(start_page < 0) {
start_page = 0;
start_delta = Math.abs(curr - max_pages)
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

} else if {?

@charypar
Copy link
Member

👍 me like!

asavin added a commit that referenced this pull request Feb 25, 2014
Handling border cases and changing max_pages behaviour
@asavin asavin merged commit 1f63ece into master Feb 25, 2014
@asavin asavin deleted the better-pagination branch February 25, 2014 15:17
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