1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-07 02:57:20 +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

@ -1,6 +1,5 @@
import {initCompLabelEdit} from './comp/LabelEdit.ts';
import {queryElems, toggleElem} from '../utils/dom.ts';
import {initAvatarUploaderWithCropper} from './comp/Cropper.ts';
import {toggleElem} from '../utils/dom.ts';
export function initCommonOrganization() {
if (!document.querySelectorAll('.organization').length) {
@ -14,6 +13,4 @@ export function initCommonOrganization() {
// Labels
initCompLabelEdit('.page-content.organization.settings.labels');
queryElems(document, '.avatar-file-with-cropper', initAvatarUploaderWithCropper);
}