@jiangcaiyang you can use these hooks for plugin activation, deactivation and uninstall
action:plugin.activate action:plugin.deactivate action:plugin.uninstallDetect if Modal is on screen
-
Im am trying to inject another button into the
upload-picture-from-url-modal
. It seems i need to detect when it is displayed before i can do that..I have jumped through so many hoops to detect if the modal is visible adding code into the custom JS section of appearance.. If anyone can help here that would be great.
-
@pwsincd have you tried adding a jQuery event listener to shown.bs.modal? I'm not sure if that one bubbles though.
-
@julian said in Detect if Modal is on screen:
I'm not sure if that one bubbles though.
Yes. It should bubble.
To check:
// SOME MSG let msg = "Something"; alert(msg);
Above will ( or at least should ) "print"
Something