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

Bind the ajax link click handler without using jQuery #2592

Merged
merged 1 commit into from
Dec 10, 2021
Merged

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Dec 9, 2021

No description provided.

Comment on lines +172 to +171
if (e.target.matches(`${modal.triggerLinkSelector}, ${modal.preserveLinkSelector}`))
modal.modalAjaxLinkClick(e)
Copy link
Member

Choose a reason for hiding this comment

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

This is pretty cool. I did not know you could interpolate variables like this in JavaScript.

@jcoyne jcoyne merged commit 8225855 into main Dec 10, 2021
@jcoyne jcoyne deleted the setupModal branch December 10, 2021 17:09
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.

None yet

2 participants