mirror of https://github.com/go-gitea/gitea.git
Follow up #33748 Now there are 3 "global" functions: * registerGlobalSelectorFunc: for all elements matching the selector, eg: `.ui.dropdown` * registerGlobalInitFunc: for `data-global-init="initInputAutoFocusEnd"` * registerGlobalEventFunc: for `data-global-click="onCommentReactionButtonClick"` And introduce `initGlobalInput` to replace old `initAutoFocusEnd` and `attachDirAuto`, use `data-global-init` to replace fragile `.js-autofocus-end` selector. Another benefit is that by the new approach, no matter how many times `registerGlobalInitFunc` is called, we only need to do one "querySelectorAll" in the last step, it could slightly improve the performance. |
||
---|---|---|
.. | ||
color.test.ts | ||
color.ts | ||
dom.test.ts | ||
dom.ts | ||
filetree.test.ts | ||
filetree.ts | ||
image.test.ts | ||
image.ts | ||
match.test.ts | ||
match.ts | ||
testhelper.ts | ||
time.test.ts | ||
time.ts | ||
url.test.ts | ||
url.ts |