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. |
||
---|---|---|
.. | ||
asciicast | ||
common | ||
console | ||
csv | ||
external | ||
internal | ||
markdown | ||
mdstripper | ||
orgmode | ||
camo.go | ||
camo_test.go | ||
html.go | ||
html_codepreview.go | ||
html_codepreview_test.go | ||
html_commit.go | ||
html_email.go | ||
html_emoji.go | ||
html_internal_test.go | ||
html_issue.go | ||
html_issue_test.go | ||
html_link.go | ||
html_mention.go | ||
html_node.go | ||
html_test.go | ||
main_test.go | ||
render.go | ||
render_helper.go | ||
render_link.go | ||
render_link_test.go | ||
renderer.go | ||
renderer_test.go | ||
sanitizer.go | ||
sanitizer_custom.go | ||
sanitizer_default.go | ||
sanitizer_default_test.go | ||
sanitizer_description.go | ||
sanitizer_description_test.go |