1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-10 04:27:22 +00:00

Optimize the calling code of queryElems (#34235)

This commit is contained in:
Kerwin Bryant
2025-04-19 08:17:07 +08:00
committed by GitHub
parent 21b43fce08
commit aeb7005245
8 changed files with 11 additions and 17 deletions

View File

@ -2,7 +2,6 @@ import {minimatch} from 'minimatch';
import {createMonaco} from './codeeditor.ts';
import {onInputDebounce, queryElems, toggleClass, toggleElem} from '../utils/dom.ts';
import {POST} from '../modules/fetch.ts';
import {initAvatarUploaderWithCropper} from './comp/Cropper.ts';
import {initRepoSettingsBranchesDrag} from './repo-settings-branches.ts';
import {fomanticQuery} from '../modules/fomantic/base.ts';
@ -149,6 +148,4 @@ export function initRepoSettings() {
initRepoSettingsSearchTeamBox();
initRepoSettingsGitHook();
initRepoSettingsBranchesDrag();
queryElems(document, '.avatar-file-with-cropper', initAvatarUploaderWithCropper);
}