Skip to content
This repository was archived by the owner on Nov 28, 2019. It is now read-only.

Conversation

@czarly
Copy link

@czarly czarly commented May 3, 2014

the javascript generated html code from django-summernote contains link tags without href attribute. i think this can be a general problem with javascript generated html that you integrate from third parties, so workaround this in pjaxr seems to be the right place.

@iekadou
Copy link
Collaborator

iekadou commented May 3, 2014

An empty url is a shortcut to the current URL. So a refresh button of only the pjaxr content could be a link like this <a href="">refresh</a>.

If the empty hrefs are unavoidable and are not meant to refresh the page, you could only register links with a correctly set href.

For example (i think there are more efficient css selectors for that):

$('a').not('[href=""]').on('click', function(e) {
    $(document).pjaxr.click(e);
});

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.

2 participants