summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/admin-emails.js
blob: f69629d42b58006a77c9b43940266fa5245d7f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}