зеркало из https://github.com/mozilla/pjs.git
103354 for Phoenix - if we do want this for Phoenix, we can put it back in, but Phoenix is broke if we don't remove the reference to the close tab in the DTD file
This commit is contained in:
Родитель
a5897ec31d
Коммит
3ca29315d8
|
@ -71,11 +71,6 @@
|
|||
tbattr="tabbrowser-multiple"
|
||||
oncommand="var tabbrowser = this.parentNode.parentNode.parentNode.parentNode;
|
||||
tabbrowser.removeTab(tabbrowser.mContextTab);"/>
|
||||
<xul:menuseparator/>
|
||||
<xul:menuitem label="&closeOtherTabs.label;" accesskey="&closeOtherTabs.accesskey;"
|
||||
tbattr="tabbrowser-multiple"
|
||||
oncommand="var tabbrowser = this.parentNode.parentNode.parentNode.parentNode;
|
||||
tabbrowser.removeAllTabsBut(tabbrowser.mContextTab);"/>
|
||||
</xul:menupopup>
|
||||
|
||||
<xul:tabs class="tabbrowser-tabs" closebutton="true" flex="1"
|
||||
|
@ -707,29 +702,6 @@
|
|||
</body>
|
||||
</method>
|
||||
|
||||
<method name="removeAllTabsBut">
|
||||
<parameter name="aTab"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aTab.localName != "tab")
|
||||
aTab = this.mCurrentTab;
|
||||
|
||||
var l = this.mTabContainer.childNodes.length;
|
||||
if (l == 1)
|
||||
return;
|
||||
|
||||
for (var i = 0; i < l; i++) {
|
||||
var tab = this.mTabContainer.childNodes[i];
|
||||
if (tab != aTab) {
|
||||
this.removeTab(tab);
|
||||
i--;
|
||||
l--;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="removeCurrentTab">
|
||||
<body>
|
||||
<![CDATA[
|
||||
|
|
Загрузка…
Ссылка в новой задаче