Skip to content

PR 139 + 140 and an Ignore Class#141

Closed
davidhellmann wants to merge 2 commits intofeimosi:devfrom
davidhellmann:patch-3
Closed

PR 139 + 140 and an Ignore Class#141
davidhellmann wants to merge 2 commits intofeimosi:devfrom
davidhellmann:patch-3

Conversation

@davidhellmann
Copy link
Copy Markdown
Contributor

I've a Gallery where is the link that trigger the baguetteBox but I've also a link that triggers an Image Download.
I've added a option ignoreClass: 'baguetteBox-disabled' and update this line:

tagsNodeList = galleryElement.getElementsByTagName('a');

to:

tagsNodeList = galleryElement.querySelectorAll('a:not(.'+ options.ignoreClass +')');

Maybe also Interesting :)

I've a Gallery where is the link that trigger the baguetteBox but I've also a link that triggers an Image Download. 
I've added a option `ignoreClass: 'baguetteBox-disabled'` and update this line:

`tagsNodeList = galleryElement.getElementsByTagName('a');`

to:

`tagsNodeList = galleryElement.querySelectorAll('a:not(.'+ options.ignoreClass +')');`

Maybe also Interesting :)
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.

1 participant