Skip to content
Snippets Groups Projects
Commit 73d31c9b authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

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

parent 6d154416
No related branches found
No related tags found
2 merge requests!206[release] Regular merge of develop,!205fix: if handbook is clicked, all its sections should appear
Pipeline #35421 passed
......@@ -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