mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
444 B
15 lines
444 B
3 years ago
|
import $ from 'jquery';
|
||
|
|
||
3 years ago
|
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);
|
||
|
}
|