How do you call an event after the Layout Modal is...
# suitecommerce
u
How do you call an event after the Layout Modal is closed ?
c
What kind of event? A click event?
u
was looking to see how to detect when a user closed the modal window - then run a function
whether they click close or the corner x or on the modal window overlay
c
What version are you working in?
u
23.1
i put this in my initialize - which seems to work
Copy code
jQuery('#modal').on('hidden.bs.modal', function () {
            console.log("modal just closed");   
        });
c
You using
layout.showContent
?
u
yes
c
You might be able to use the
events: {}
object in your view to achieve the same result.
👍 1