Multiple Tab Handlerの仕様変更に追従

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1868 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-02-24 07:58:12 +00:00
parent 0a71c203a4
commit c1d9a5e398
2 changed files with 14 additions and 11 deletions

View File

@ -819,9 +819,9 @@ TreeStyleTabBrowser.prototype = {
break; break;
} }
}, },
/* DOM Event Handling */ /* DOM Event Handling */
handleEvent : function(aEvent) handleEvent : function(aEvent)
{ {
switch (aEvent.type) switch (aEvent.type)
@ -1323,17 +1323,17 @@ TreeStyleTabBrowser.prototype = {
this.collapseExpandSubtree(tab, isSubTreeCollapsed); this.collapseExpandSubtree(tab, isSubTreeCollapsed);
} }
if (isDuplicated) { if (isDuplicated) this.clearCachedIds();
this.clearCachedIds();
}
}, },
getDuplicatedId : function(aId)
getDuplicatedId : function(aId)
{ {
if (!(aId in this.duplicatedIdsHash)) if (!(aId in this.duplicatedIdsHash))
this.duplicatedIdsHash[aId] = this.makeNewId(); this.duplicatedIdsHash[aId] = this.makeNewId();
return this.duplicatedIdsHash[aId]; return this.duplicatedIdsHash[aId];
}, },
duplicatedIdsHash : {}, duplicatedIdsHash : {},
clearCachedIds : function() clearCachedIds : function()
{ {
if (this.clearCachedIdsTimer) { if (this.clearCachedIdsTimer) {
@ -1349,7 +1349,7 @@ TreeStyleTabBrowser.prototype = {
{ {
this.duplicatedIdsHash = {}; this.duplicatedIdsHash = {};
}, },
onTabSelect : function(aEvent) onTabSelect : function(aEvent)
{ {
var b = this.mTabBrowser; var b = this.mTabBrowser;
@ -1857,6 +1857,7 @@ TreeStyleTabBrowser.prototype = {
this.getNextVisibleTab(draggedTabs[0]) != aInfo.insertBefore this.getNextVisibleTab(draggedTabs[0]) != aInfo.insertBefore
) )
) { ) {
b.duplicatingSelectedTabs = aInfo.action & self.kACTION_DUPLICATE ? true : false ; // Multiple Tab Handler
b.movingSelectedTabs = true; // Multiple Tab Handler b.movingSelectedTabs = true; // Multiple Tab Handler
var tab, newIndex; var tab, newIndex;
@ -1887,6 +1888,7 @@ TreeStyleTabBrowser.prototype = {
this.attachTabsOnDrop(newRoots, aInfo.parent); this.attachTabsOnDrop(newRoots, aInfo.parent);
b.movingSelectedTabs = false; // Multiple Tab Handler b.movingSelectedTabs = false; // Multiple Tab Handler
b.duplicatingSelectedTabs = false; // Multiple Tab Handler
} }
return true; return true;

View File

@ -378,12 +378,13 @@ tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-stack > hbox:not(:last-ch
display: none !important; display: none !important;
} }
tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-button { tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-button {
border-top: 1px solid; -moz-appearance: none !important;
-moz-border-top-colors: ThreeDShadow; border-top: 1px solid ThreeDShadow !important;
background: ThreeDFace; -moz-border-top-colors: ThreeDShadow !important;
background: ThreeDFace !important;
} }
tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-button:hover { tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-button:hover {
background: ThreeDHighlight; background: ThreeDHighlight !important;
} }
tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-box, tabbrowser[treestyletab-mode="vertical"] .tabs-alltabs-box,