Hey!
I noticed Pro is using it’s own Lightbox functions. I’m not sure what’s the best way to run a function when someone closes the modal (this is also closing the modal when the user clicks anywhere on the screen).
For example, I noticed this piece of code:
What can I check for when the modal closes?
o.on("xToggleState", "[data-x-toggle]", function(e, n) {
var i = t(this);
i.find(".x-toggle").toggleClass("x-active", n),
window.csGlobal.bowser.msedge || window.csGlobal.bowser.msie || window.csGlobal.bowser.ios || i.find("[data-x-toggle-anim]").each(function() {
var e = t(this);
e.hasClass("x-running") || e.one("webkitAnimationIteration mozAnimationIteration MSAnimationIteration oanimationiteration animationiteration", function() {
e.removeClass("x-running"),
i.hasClass("x-active") || e.removeAttr("style")
}),
e.addClass("x-running"),
i.hasClass("x-active") && e.css({
"animation-name": e.data("x-toggle-anim")
})
})
}),
```