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

Blacklist links click #20

Closed
anhskohbo opened this issue Jun 7, 2016 · 2 comments
Closed

Blacklist links click #20

anhskohbo opened this issue Jun 7, 2016 · 2 comments

Comments

@anhskohbo
Copy link
Contributor

Thanks for great project, I have a question it's how to ignore click link in somewhere?
I see source core barda.js listen every click in a tag.

@luruke
Copy link
Member

luruke commented Jun 7, 2016

Hi @anhskohbo

As stated on the FAQ of the website:

I's possible to ignore barba.js on some links?
You can just add the class .no-barba, or add your own check logic replacing the function Barba.Pjax.preventCheck

Here https://github.com/luruke/barba.js/blob/master/src/Pjax/Pjax.js#L194
you can have an overview of all the checks that are done before preventing or not a click.

Cheers

@luruke luruke closed this as completed Jun 7, 2016
@anhskohbo
Copy link
Contributor Author

Thanks!

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

No branches or pull requests

2 participants