From f45187c8b4b0f53be7860103e82e840e47c960f0 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Tue, 14 Aug 2001 02:40:55 +0000 Subject: [PATCH] Reverting part of previous change which caused columnpicker funkiness. rs=sspitzer --- xpfe/global/resources/content/bindings/outliner.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/xpfe/global/resources/content/bindings/outliner.xml b/xpfe/global/resources/content/bindings/outliner.xml index 77dd6eea7a2..08bba24d820 100644 --- a/xpfe/global/resources/content/bindings/outliner.xml +++ b/xpfe/global/resources/content/bindings/outliner.xml @@ -443,7 +443,7 @@ try { if (row.value >= b.view.rowCount) return; } catch (e) { return; } - + if (obj.value != "twisty") { var column = document.getElementById(col.value); var cycler = column.getAttribute('cycler') == 'true'; @@ -595,7 +595,7 @@ popupChild.setAttribute("colid", currCol.id); popupChild.setAttribute("oncommand", "this.parentNode.parentNode.parentNode.toggleColumnState(this);"); - if (currCol.getAttribute("collapsed") != "true") + if (currCol.getAttribute("hidden") != "true") popupChild.setAttribute("checked", "true"); if (currCol.getAttribute("primary") == "true") popupChild.setAttribute("disabled", "true"); @@ -619,12 +619,9 @@ if (colNode) { var checkedState = aPopup.getAttribute("checked"); if (checkedState == "true") - colNode.removeAttribute("collapsed"); + colNode.removeAttribute("hidden"); else - colNode.setAttribute("collapsed", "true"); - - // now that columns have changed, we need to invalidate - colNode.parentNode.outlinerBoxObject.invalidate(); + colNode.setAttribute("hidden", "true"); } ]]>