mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 17:47:19 +00:00
Refactor language menu and dom utils (#32450)
1. Make `queryElem*` functions could correctly handle TS types 2. Remove some legacy jQuery $ calls (introduce fomanticQuery for Fomantic UI only) 3. Fix some TS typing problems
This commit is contained in:
@ -31,7 +31,7 @@ async function onDownloadArchive(e) {
|
||||
}
|
||||
|
||||
export function initRepoArchiveLinks() {
|
||||
queryElems('a.archive-link[href]', (el) => el.addEventListener('click', onDownloadArchive));
|
||||
queryElems(document, 'a.archive-link[href]', (el) => el.addEventListener('click', onDownloadArchive));
|
||||
}
|
||||
|
||||
export function initRepoActivityTopAuthorsChart() {
|
||||
|
Reference in New Issue
Block a user