Created
November 28, 2018 07:30
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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