aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/admin-emails.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/admin-emails.js')
-rw-r--r--web_src/js/features/admin-emails.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web_src/js/features/admin-emails.js b/web_src/js/features/admin-emails.js
new file mode 100644
index 0000000000..f69629d42b
--- /dev/null
+++ b/web_src/js/features/admin-emails.js
@@ -0,0 +1,12 @@
+export function initAdminEmails() {
+ 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'));
+ $('#change-email-modal').modal('show');
+ e.preventDefault();
+ }
+ $('.link-email-action').on('click', linkEmailAction);
+}