Created
July 11, 2022 12:03
-
-
Save wplit/a15974ee9729b9538097b02e1c8d37f5 to your computer and use it in GitHub Desktop.
reapply lightbox functionality to page after lightbox 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(document).ready(function($) { | |
$('.oxy-lightbox').on('extras_lightbox:close', function(){ | |
setTimeout(function() { | |
if ( typeof doExtrasLightbox == 'function' ) { | |
doExtrasLightbox(jQuery('body')); | |
} | |
}, 500); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment