Description: My name is Aram Boyajyan (Aram Bojadzjan) and this is my personal website where I write about web development and IT management.
web development (13962) drupal (1604) it project management (97) senior drupal developer (4) aram boyajyan (1) aram bojadzjan (1)
Drupal provides a few custom events for AJAX modals. Even though the modal itself is provided by jQuery UI library, these events are custom and are provided by Drupal itself.
There are a few events you can use here:
In Drupal 8/9 this is pretty straightforward as UserInterface provides two methods for doing this: block ( ) and activate ( ) .