mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 17:47:19 +00:00
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>
This commit is contained in:
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user