2022-01-28 14:00:11 -07:00
|
|
|
import $ from 'jquery';
|
|
|
|
|
2024-11-11 04:13:57 -07:00
|
|
|
export function initAdminEmails(): void {
|
|
|
|
$('.link-email-action').on('click', (e) => {
|
2021-10-16 11:28:04 -06:00
|
|
|
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();
|
2024-11-11 04:13:57 -07:00
|
|
|
});
|
2021-10-16 11:28:04 -06:00
|
|
|
}
|