chore: enable no-jquery/no-trigger

- A lot of substitution to `.requestSubmit()`.
- Where possible, rewrite some other jquery to vanilla javascript to
ease the linter fix.
This commit is contained in:
Gusted 2025-04-01 04:41:57 +02:00
parent c124014115
commit 9420d3d0a5
No known key found for this signature in database
GPG key ID: FD821B732837125F
9 changed files with 34 additions and 31 deletions

View file

@ -184,7 +184,8 @@ export function initRepoCodeView() {
$('html, body').scrollTop($first.offset().top - 200);
}
}
}).trigger('hashchange');
});
window.dispatchEvent(new Event('hashchange'));
}
$(document).on('click', '.fold-file', ({currentTarget}) => {
invertFileFolding(currentTarget.closest('.file-content'), currentTarget);