mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198)
https://github.com/go-gitea/gitea/pull/24098#issuecomment-1514010690 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		| @@ -21,7 +21,7 @@ export function initAdminCommon() { | ||||
|         $('#login_name').removeAttr('required'); | ||||
|         hideElem($('.non-local')); | ||||
|         showElem($('.local')); | ||||
|         $('#user_name').focus(); | ||||
|         $('#user_name').trigger('focus'); | ||||
|  | ||||
|         if ($(this).data('password') === 'required') { | ||||
|           $('#password').attr('required', 'required'); | ||||
| @@ -33,7 +33,7 @@ export function initAdminCommon() { | ||||
|         $('#login_name').attr('required', 'required'); | ||||
|         showElem($('.non-local')); | ||||
|         hideElem($('.local')); | ||||
|         $('#login_name').focus(); | ||||
|         $('#login_name').trigger('focus'); | ||||
|  | ||||
|         $('#password').removeAttr('required'); | ||||
|       } | ||||
|   | ||||
| @@ -16,19 +16,19 @@ export function initAdminUserListSearchForm() { | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   $form.find(`input[type=radio]`).click(() => { | ||||
|     $form.submit(); | ||||
|   $form.find(`input[type=radio]`).on('click', () => { | ||||
|     $form.trigger('submit'); | ||||
|     return false; | ||||
|   }); | ||||
|  | ||||
|   $form.find('.j-reset-status-filter').click(() => { | ||||
|   $form.find('.j-reset-status-filter').on('click', () => { | ||||
|     $form.find(`input[type=radio]`).each((_, e) => { | ||||
|       const $e = $(e); | ||||
|       if ($e.attr('name').startsWith('status_filter[')) { | ||||
|         $e.prop('checked', false); | ||||
|       } | ||||
|     }); | ||||
|     $form.submit(); | ||||
|     $form.trigger('submit'); | ||||
|     return false; | ||||
|   }); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user