Commit e8a18b3b authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

Merge branch 'box-hider' into 'develop'

fix: if handbook is clicked, all its sections should appear

See merge request !205
parents 18016cc4 73d31c9b
Pipeline #35423 passed with stages
in 2 minutes and 20 seconds
......@@ -75,11 +75,19 @@ window.boxHider = (function() {
HideAllCategories();
// Finally, hide all boxes except of the selected one
var allBoxes = GetAllBoxElementsArray();
allBoxes.map(function(box) {
if (box != selectedBox) {
HideElement(box);
}
});
if (boxId.startsWith('handbook')) {
allBoxes.map(function(box) {
if (!box.id.startsWith('handbook')) {
HideElement(box);
}
});
} else {
allBoxes.map(function(box) {
if (box != selectedBox) {
HideElement(box);
}
});
}
}
return {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment