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

Fix pagination on new public pages #2716

Merged
merged 2 commits into from
Mar 11, 2015
Merged

Conversation

viddo
Copy link
Contributor

@viddo viddo commented Mar 11, 2015

Fixes #2623

The problem is not really on the public pages but in how the pagination view was changed to work for the create-map dialog, so refactored the code to allow the click-behaviour to work as default. Instead, only block stop event it if a url resolver (url_to) is not provided (which is the desired behavior for the create map dialog).

Problem was caused due to changes introduced in create-new-map dialog.
Refactor the pagination view to simplify the setup, removing
unnecessary binds and enable pagination view/model to allow for desired
behaviour in these cases.
@viddo
Copy link
Contributor Author

viddo commented Mar 11, 2015

@xavijam tested locally and works as expected now, but code review
cc @saleiva for reporting the issue

if (ev) {
ev.preventDefault();
}

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 ojete :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ojete?

Copy link
Contributor

Choose a reason for hiding this comment

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

ojete in @CartoDB team === good
cc @Kartones.

@xavijam
Copy link
Contributor

xavijam commented Mar 11, 2015

👍

@Cartofante
Copy link
Collaborator

Frontend tests were OK 👍 (details)

viddo added a commit that referenced this pull request Mar 11, 2015
@viddo viddo merged commit 2eb64cf into master Mar 11, 2015
@viddo viddo deleted the 2623-fix-new-public-pagination branch March 11, 2015 15:32
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.

Pagination doesn't work on new public profile
3 participants