diff --git a/pos/static/js/config.js b/pos/static/js/config.js index 55d6d00..428c193 100644 --- a/pos/static/js/config.js +++ b/pos/static/js/config.js @@ -1205,11 +1205,11 @@ const Config = (() => { function switchPermTab(tab) { _currentPermTab = tab; - document.querySelectorAll('#perm-panel-modules, #perm-panel-workshop').forEach(function(el) { el.style.display = 'none'; el.classList.remove('is-active'); }); - document.querySelectorAll('#tab-perm-modules, #tab-perm-workshop').forEach(function(el) { el.classList.remove('is-active'); }); + document.querySelectorAll('#perm-panel-modules, #perm-panel-workshop').forEach(function(el) { el.style.display = 'none'; el.classList.remove('active'); }); + document.querySelectorAll('#tab-perm-modules, #tab-perm-workshop').forEach(function(el) { el.classList.remove('active'); }); document.getElementById('perm-panel-' + tab).style.display = 'block'; - document.getElementById('perm-panel-' + tab).classList.add('is-active'); - document.getElementById('tab-perm-' + tab).classList.add('is-active'); + document.getElementById('perm-panel-' + tab).classList.add('active'); + document.getElementById('tab-perm-' + tab).classList.add('active'); } // ------------------------------------------------------------------------- diff --git a/pos/templates/config.html b/pos/templates/config.html index 1ceebe6..0cf6284 100644 --- a/pos/templates/config.html +++ b/pos/templates/config.html @@ -867,12 +867,12 @@ -