Commit 73d31c9b authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

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

parent 6d154416
Pipeline #35421 passed with stages
in 1 minute and 55 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