1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-02 10:21:27 +02:00
gitea/web_src/js/features
wxiaoguang d32af84a10
Refactor hiding-methods, remove jQuery show/hide, remove .hide class, remove inline style=display:none (#22950)
Close #22847

This PR:

* introduce Gitea's own `showElem` and related functions
* remove jQuery show/hide
* remove .hide class
* remove inline style=display:none 

From now on:

do not use:
* "[hidden]" attribute: it's too weak, can not be applied to an element
with "display: flex"
* ".hidden" class: it has been polluted by Fomantic UI in many cases
* inline style="display: none": it's difficult to tweak
* jQuery's show/hide/toggle: it can not show/hide elements with
"display: xxx !important"

only use:
* this ".gt-hidden" class
* showElem/hideElem/toggleElem functions in "utils/dom.js"

cc: @silverwind , this is the all-in-one PR
2023-02-19 12:06:14 +08:00
..
admin
comp
aria.js
aria.md
captcha.js
citation.js
clipboard.js
codeeditor.js
colorpicker.js
common-global.js
common-issue.js
common-organization.js
contextpopup.js
copycontent.js
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
formatting.js
heatmap.js
imagediff.js
install.js
notification.js
org-team.js
pull-view-file.js
repo-branch.js
repo-code.js
repo-code.test.js
repo-commit.js
repo-common.js
repo-diff-filetree.js
repo-diff.js
repo-editor.js
repo-findfile.js
repo-findfile.test.js
repo-graph.js
repo-home.js
repo-issue-content.js
repo-issue-pr-form.js
repo-issue.js
repo-legacy.js
repo-migrate.js
repo-migration.js
repo-projects.js
repo-release.js
repo-settings.js
repo-template.js
repo-unicode-escape.js
repo-wiki.js
serviceworker.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js
user-settings.js