mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-14 01:43:48 +08:00
f35e2b0cd1
Fixes 69 typescript errors found in the `admin` and `markup` folders. --------- Co-authored-by: Giteabot <teabot@gitea.io>
14 lines
411 B
TypeScript
14 lines
411 B
TypeScript
import $ from 'jquery';
|
|
|
|
export function initAdminEmails(): void {
|
|
$('.link-email-action').on('click', (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();
|
|
});
|
|
}
|