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:
parent
6793ef0069
commit
8ea33baa1c
12 changed files with 28 additions and 15 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue