タブバーの「新しいタブ」ボタンが機能しなくなっていたのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3990 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
194d91b681
commit
744b18b56e
@ -1147,10 +1147,8 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case 'click':
|
case 'click':
|
||||||
if (aEvent.target.ownerDocument == document) {
|
if (aEvent.target.ownerDocument == document)
|
||||||
this.onTabClick(aEvent);
|
this.onTabClick(aEvent);
|
||||||
return;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 'dblclick':
|
case 'dblclick':
|
||||||
@ -1761,17 +1759,13 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
if (this.isEventFiredOnTwisty(aEvent)) {
|
if (this.isEventFiredOnTwisty(aEvent)) {
|
||||||
var tab = this.getTabFromEvent(aEvent);
|
var tab = this.getTabFromEvent(aEvent);
|
||||||
this.collapseExpandSubtree(tab, tab.getAttribute(this.kSUBTREE_COLLAPSED) != 'true');
|
this.collapseExpandSubtree(tab, tab.getAttribute(this.kSUBTREE_COLLAPSED) != 'true');
|
||||||
|
aEvent.preventDefault();
|
||||||
|
aEvent.stopPropagation();
|
||||||
}
|
}
|
||||||
else if (!this.getTabFromEvent(aEvent)) {
|
else if (!this.getTabFromEvent(aEvent)) {
|
||||||
var tab = this.getTabFromTabbarEvent(aEvent);
|
var tab = this.getTabFromTabbarEvent(aEvent);
|
||||||
if (tab) this.mTabBrowser.selectedTab = tab;
|
if (tab) this.mTabBrowser.selectedTab = tab;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
aEvent.preventDefault();
|
|
||||||
aEvent.stopPropagation();
|
|
||||||
},
|
},
|
||||||
getTabFromTabbarEvent : function(aEvent)
|
getTabFromTabbarEvent : function(aEvent)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user