summaryrefslogtreecommitdiff
path: root/assets/js/core/modal.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/core/modal.js')
-rw-r--r--assets/js/core/modal.js6
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();