mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-25 03:22:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			444 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 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);
 | |
| }
 |