Skip to content

Instantly share code, notes, and snippets.

@danieliser
Created November 28, 2018 07:30
Show Gist options
  • Save danieliser/3a1c9a742148a731b31c00dcde05393e to your computer and use it in GitHub Desktop.
Save danieliser/3a1c9a742148a731b31c00dcde05393e to your computer and use it in GitHub Desktop.
Toggle a class on an element when a Popup Maker popup opens and closes.
jQuery('#pum-123')
.on('pumAfterOpen', function () {
jQuery('#some-button-id').addClass('popup-is-open');
})
.on('pumAfterClose', function () {
jQuery('#some-button-id').removeClass('popup-is-open');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment