diff options
author | ON-jz <on.jz.github@gmail.com> | 2017-05-17 15:45:12 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2017-05-18 21:47:44 -0400 |
commit | e8c83c97d7f1fa9028fac9dc44f94959349ca074 (patch) | |
tree | 8f262c8cac73ec34b9f9e20076d23d819cb85412 /assets/js/core | |
parent | 3477cd8c5ac2c103c727628f18a0eeb082a93766 (diff) |
Added new javascript events for dropdown and modal
- dropdown.clicked
- dropdown.afterRender
- dropdown.beforeDestroy
- modal.open
- modal.afterRender
- modal.beforeDestroy
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(); |