mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Add system setting table with cache and also add cache supports for user setting (#18058)
This commit is contained in:
		
							
								
								
									
										14
									
								
								web_src/js/features/admin/emails.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								web_src/js/features/admin/emails.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Lunny Xiao
					Lunny Xiao