mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
13 lines
419 B
JavaScript
13 lines
419 B
JavaScript
|
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);
|
||
|
}
|