aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/org-team.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/org-team.js')
-rw-r--r--web_src/js/features/org-team.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web_src/js/features/org-team.js b/web_src/js/features/org-team.js
index 9e6c3c7ff1..3640bb96f7 100644
--- a/web_src/js/features/org-team.js
+++ b/web_src/js/features/org-team.js
@@ -1,4 +1,5 @@
import $ from 'jquery';
+import {hideElem, showElem} from '../utils/dom.js';
const {appSubUrl} = window.config;
@@ -7,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') {
- $('.organization.new.team .team-units').hide();
+ hideElem($('.organization.new.team .team-units'));
} else {
- $('.organization.new.team .team-units').show();
+ showElem($('.organization.new.team .team-units'));
}
});
}