diff options
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/index.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index ec39a1c40c..fcf9701c3c 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2470,6 +2470,7 @@ $(document).ready(async () => { $('.delete-button').click(showDeletePopup); $('.add-all-button').click(showAddAllPopup); $('.link-action').click(linkAction); + $('.link-email-action').click(linkEmailAction); $('.delete-branch-button').click(showDeletePopup); @@ -2749,6 +2750,17 @@ function linkAction() { }); } +function linkEmailAction(e) { + const $this = $(this); + $('#form-uid').val($this.data('uid')); + $('#form-email').val($this.data('email')); + $('#form-primary').val($this.data('primary')); + $('#form-activate').val($this.data('activate')); + $('#form-uid').val($this.data('uid')); + $('#change-email-modal').modal('show'); + e.preventDefault(); +} + function initVueComponents() { const vueDelimeters = ['${', '}']; |