diff --git a/assets/js/box_hider.js b/assets/js/box_hider.js index 634d67ccaabb8e89128c46bfddbf815a14301def..bd0904ad8963726b50428e5b2b340fc9b16e183b 100644 --- a/assets/js/box_hider.js +++ b/assets/js/box_hider.js @@ -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 {