code.gitea.io/gitea@v1.21.7/web_src/js/features/admin/emails.js (about)

     1  import $ from 'jquery';
     2  
     3  export function initAdminEmails() {
     4    function linkEmailAction(e) {
     5      const $this = $(this);
     6      $('#form-uid').val($this.data('uid'));
     7      $('#form-email').val($this.data('email'));
     8      $('#form-primary').val($this.data('primary'));
     9      $('#form-activate').val($this.data('activate'));
    10      $('#change-email-modal').modal('show');
    11      e.preventDefault();
    12    }
    13    $('.link-email-action').on('click', linkEmailAction);
    14  }