Skip to content
Snippets Groups Projects
Commit 09b4ed85 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

Merge branch 'mk-finish-publication-sections' into 'develop'

finish the publication sections

See merge request !470
parents 90b24571 15b4d6d2
No related branches found
No related tags found
2 merge requests!472shorten the publication shortcuts,!470finish the publication sections
Pipeline #71992 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