diff --git a/presentation/lookAndFeel/knowledgeTree/js/divSwitch.js b/presentation/lookAndFeel/knowledgeTree/js/divSwitch.js index 99a95d7..5108955 100644 --- a/presentation/lookAndFeel/knowledgeTree/js/divSwitch.js +++ b/presentation/lookAndFeel/knowledgeTree/js/divSwitch.js @@ -13,8 +13,10 @@ function switchDiv(div_id, object) if (style_sheet) { if (object == "document") { + showAll(aDocumentDivs); hideAll(aDocumentDivs); } else { + showAll(aFolderDivs); hideAll(aFolderDivs); } changeObjectVisibility(div_id,"visible"); @@ -34,6 +36,15 @@ function hideAll(aDivs) changeObjectVisibility(aDivs[i], "hidden"); } } +// function showAll() +// shows a bunch of divs +// +function showAll(aDivs) +{ + for (var i=0; i returns style object // given a string containing the id of an object