diff options
Diffstat (limited to 'assets/js/core')
-rw-r--r-- | assets/js/core/modal.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/js/core/modal.js b/assets/js/core/modal.js index 2b383a16..e7f2c2ff 100644 --- a/assets/js/core/modal.js +++ b/assets/js/core/modal.js @@ -64,6 +64,8 @@ _KB.autoComplete(); _KB.tagAutoComplete(); _KB.get('Task').onPopoverOpened(); + + KB.trigger('modal.afterRender'); } function replace(html) { @@ -123,6 +125,8 @@ var overlayElement = KB.find('#modal-overlay'); if (overlayElement) { + KB.trigger('modal.beforeDestroy'); + overlayElement.remove(); } } @@ -154,6 +158,8 @@ KB.modal = { open: function (url, size, overlayClickDestroy) { + KB.trigger('modal.open'); + _KB.get('Dropdown').close(); destroy(); |