mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-31 08:37:35 -04:00
19b017f398
- Don't rely on globals (window.$) for jQuery import - Remove eslint globals no longer in use
15 lines
444 B
JavaScript
15 lines
444 B
JavaScript
import $ from 'jquery';
|
|
|
|
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);
|
|
}
|