From c1d9a5e3982ee59c38ba0572a09beb6b96492be2 Mon Sep 17 00:00:00 2001 From: piro Date: Sun, 24 Feb 2008 07:58:12 +0000 Subject: [PATCH] =?UTF-8?q?Multiple=20Tab=20Handler=E3=81=AE=E4=BB=95?= =?UTF-8?q?=E6=A7=98=E5=A4=89=E6=9B=B4=E3=81=AB=E8=BF=BD=E5=BE=93?= 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@1868 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 16 +++++++++------- skin/classic/treestyletab/treestyletab.css | 9 +++++---- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 53b510a9..e9639d0e 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -819,9 +819,9 @@ TreeStyleTabBrowser.prototype = { break; } }, - + /* DOM Event Handling */ - + handleEvent : function(aEvent) { switch (aEvent.type) @@ -1323,17 +1323,17 @@ TreeStyleTabBrowser.prototype = { this.collapseExpandSubtree(tab, isSubTreeCollapsed); } - if (isDuplicated) { - this.clearCachedIds(); - } + if (isDuplicated) this.clearCachedIds(); }, - getDuplicatedId : function(aId) + + getDuplicatedId : function(aId) { if (!(aId in this.duplicatedIdsHash)) this.duplicatedIdsHash[aId] = this.makeNewId(); return this.duplicatedIdsHash[aId]; }, duplicatedIdsHash : {}, + clearCachedIds : function() { if (this.clearCachedIdsTimer) { @@ -1349,7 +1349,7 @@ TreeStyleTabBrowser.prototype = { { this.duplicatedIdsHash = {}; }, - + onTabSelect : function(aEvent) { var b = this.mTabBrowser; @@ -1857,6 +1857,7 @@ TreeStyleTabBrowser.prototype = { this.getNextVisibleTab(draggedTabs[0]) != aInfo.insertBefore ) ) { + b.duplicatingSelectedTabs = aInfo.action & self.kACTION_DUPLICATE ? true : false ; // Multiple Tab Handler b.movingSelectedTabs = true; // Multiple Tab Handler var tab, newIndex; @@ -1887,6 +1888,7 @@ TreeStyleTabBrowser.prototype = { this.attachTabsOnDrop(newRoots, aInfo.parent); b.movingSelectedTabs = false; // Multiple Tab Handler + b.duplicatingSelectedTabs = false; // Multiple Tab Handler } return true; diff --git a/skin/classic/treestyletab/treestyletab.css b/skin/classic/treestyletab/treestyletab.css index 1fb13c1b..18155e4c 100644 --- a/skin/classic/treestyletab/treestyletab.css +++ b/skin/classic/treestyletab/treestyletab.css @@ -378,12 +378,13 @@ tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-stack > hbox:not(:last-ch display: none !important; } tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-button { - border-top: 1px solid; - -moz-border-top-colors: ThreeDShadow; - background: ThreeDFace; + -moz-appearance: none !important; + border-top: 1px solid ThreeDShadow !important; + -moz-border-top-colors: ThreeDShadow !important; + background: ThreeDFace !important; } tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-button:hover { - background: ThreeDHighlight; + background: ThreeDHighlight !important; } tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-box,