From c5e81d81a7aae432be21d47e4df37a0d2f975a7d Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 29 Sep 2009 13:18:36 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B1=95=E9=96=8B=E3=81=95=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=82=8B=E3=83=84=E3=83=AA=E3=83=BC=E3=81=AE=E9=96=93?= =?UTF-8?q?=E3=81=A7=E3=81=AE=E3=82=BF=E3=83=96=E3=81=AE=E7=A7=BB=E5=8B=95?= =?UTF-8?q?=E3=81=A7=E3=81=AF=E3=80=81=E3=83=84=E3=83=AA=E3=83=BC=E3=82=92?= =?UTF-8?q?=E8=87=AA=E5=8B=95=E7=9A=84=E3=81=AB=E3=81=AF=E9=96=89=E3=81=98?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5148 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 62080ad2..df3b78a3 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2703,10 +2703,12 @@ TreeStyleTabBrowser.prototype = { if (!aInfo.dontExpand) { if (this.getTreePref('autoCollapseExpandSubTreeOnSelect')) { - this.collapseExpandTreesIntelligentlyFor(aParent); + if (aParent.getAttribute(this.kSUBTREE_COLLAPSED) == 'true') + this.collapseExpandTreesIntelligentlyFor(aParent); var p = aParent; do { - this.collapseExpandSubtree(p, false, aInfo.dontAnimate); + if (p.getAttribute(this.kSUBTREE_COLLAPSED) == 'true') + this.collapseExpandSubtree(p, false, aInfo.dontAnimate); } while (p = this.getParentTab(p)); } @@ -2714,7 +2716,8 @@ TreeStyleTabBrowser.prototype = { if (this.getTreePref('autoExpandSubTreeOnAppendChild')) { var p = aParent; do { - this.collapseExpandSubtree(p, false, aInfo.dontAnimate); + if (p.getAttribute(this.kSUBTREE_COLLAPSED) == 'true') + this.collapseExpandSubtree(p, false, aInfo.dontAnimate); } while (p = this.getParentTab(p)); }