diff options
author | Yarden Shoham <git@yardenshoham.com> | 2024-03-26 21:38:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 19:38:37 +0000 |
commit | a1f11e2e33f20409eac65b2d0e9a7cd7c767eb72 (patch) | |
tree | 203b91db91e73b520683e444d6cda0a7277f1f7d /web_src/js/features/org-team.js | |
parent | e0b018706fa7703ef1759d9a75a1399383715808 (diff) | |
download | gitea-a1f11e2e33f20409eac65b2d0e9a7cd7c767eb72.tar.gz gitea-a1f11e2e33f20409eac65b2d0e9a7cd7c767eb72.zip |
Remove jQuery calls that have no effect on `showElem` and `hideElem` (#30110)
There's no need to initialize a jQuery object with a CSS selector when
we can pass the CSS selector directly.
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'web_src/js/features/org-team.js')
-rw-r--r-- | web_src/js/features/org-team.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/org-team.js b/web_src/js/features/org-team.js index 2236bc58bc..c216fdf6a2 100644 --- a/web_src/js/features/org-team.js +++ b/web_src/js/features/org-team.js @@ -8,9 +8,9 @@ export function initOrgTeamSettings() { $('.organization.new.team input[name=permission]').on('change', () => { const val = $('input[name=permission]:checked', '.organization.new.team').val(); if (val === 'admin') { - hideElem($('.organization.new.team .team-units')); + hideElem('.organization.new.team .team-units'); } else { - showElem($('.organization.new.team .team-units')); + showElem('.organization.new.team .team-units'); } }); } |