From 4483376e1380539d503152ada466c369054cf172 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 1 Aug 2003 15:29:06 +0000 Subject: [PATCH] (#2684) added showAll function and show all divs before hiding all to fix IE div switching bug --- presentation/lookAndFeel/knowledgeTree/js/divSwitch.js | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) 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 -- libgit2 0.21.4