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>
(cherry picked from commit a1f11e2e33f20409eac65b2d0e9a7cd7c767eb72)
This commit is contained in:
Yarden Shoham 2024-03-26 21:38:37 +02:00 committed by Earl Warren
parent 7e0dfa07ba
commit 95024f1486
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 22 additions and 22 deletions

View file

@ -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');
}
});
}