Skip to content
Snippets Groups Projects
Verified Commit 6fc3f7c6 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

box hider for qms

parent 8397b274
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ window.boxHider = (function() {
function GetSelectedBoxElement(id) {
var allBoxesArray = GetAllBoxElementsArray();
// note: handbook and lab are actually grouped sections
if (id.startsWith('handbook') || id.startsWith('lab')) {
if (id.startsWith('handbook') || id.startsWith('lab') || id.startsWith('qms')) {
return true;
} else {
var element = document.getElementById(id);
......@@ -96,6 +96,14 @@ window.boxHider = (function() {
ShowElement(box);
}
});
} else if (boxId.startsWith('qms')) {
allBoxes.map(function(box) {
if (!box.id.startsWith('qms')) {
HideElement(box);
} else {
ShowElement(box);
}
});
} else {
allBoxes.map(function(box) {
if (box != selectedBox) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment