Skip to content
Snippets Groups Projects
Commit 15b4d6d2 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil :bicyclist:
Browse files

finish the publication sections

The box_hider is getting cringe at this point and we should really think about
something better.
parent 8ae30b58
No related branches found
No related tags found
2 merge requests!472shorten the publication shortcuts,!470finish the publication sections
Pipeline #71971 passed with warnings
......@@ -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') || id.startsWith('qms')) {
if (id.startsWith('handbook') || id.startsWith('lab') || id.startsWith('qms') || id.startsWith('publication')) {
return true;
} else {
var element = document.getElementById(id);
......@@ -104,6 +104,14 @@ window.boxHider = (function() {
ShowElement(box);
}
});
} else if (boxId.startsWith('publication')) {
allBoxes.map(function(box) {
if (!box.id.startsWith('publication')) {
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