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 R3/howto-cards!470
parents 90b24571 15b4d6d2
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ window.boxHider = (function() { ...@@ -24,7 +24,7 @@ window.boxHider = (function() {
function GetSelectedBoxElement(id) { function GetSelectedBoxElement(id) {
var allBoxesArray = GetAllBoxElementsArray(); var allBoxesArray = GetAllBoxElementsArray();
// note: handbook and lab are actually grouped sections // 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; return true;
} else { } else {
var element = document.getElementById(id); var element = document.getElementById(id);
...@@ -104,6 +104,14 @@ window.boxHider = (function() { ...@@ -104,6 +104,14 @@ window.boxHider = (function() {
ShowElement(box); ShowElement(box);
} }
}); });
} else if (boxId.startsWith('publication')) {
allBoxes.map(function(box) {
if (!box.id.startsWith('publication')) {
HideElement(box);
} else {
ShowElement(box);
}
});
} else { } else {
allBoxes.map(function(box) { allBoxes.map(function(box) {
if (box != selectedBox) { 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