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

Merge branch 'box-hider' into 'develop'

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

See merge request R3/howto-cards!205
parents 18016cc4 73d31c9b
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
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