зеркало из https://github.com/mozilla/pjs.git
"Close other tabs" is scary and dangerous and not too useful. Bug 103354,
patch by jag, r=caillon, sr=bryner, moa=ben, a=asa, alphabet-soup=campbell, go team!
This commit is contained in:
Родитель
bd4cf6331f
Коммит
2fcb01053d
|
@ -70,11 +70,6 @@
|
||||||
tbattr="tabbrowser-multiple"
|
tbattr="tabbrowser-multiple"
|
||||||
oncommand="var tabbrowser = this.parentNode.parentNode.parentNode.parentNode;
|
oncommand="var tabbrowser = this.parentNode.parentNode.parentNode.parentNode;
|
||||||
tabbrowser.removeTab(tabbrowser.mContextTab);"/>
|
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:menupopup>
|
||||||
|
|
||||||
<xul:tabs class="tabbrowser-tabs" closebutton="true" flex="1"
|
<xul:tabs class="tabbrowser-tabs" closebutton="true" flex="1"
|
||||||
|
@ -723,29 +718,6 @@
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</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">
|
<method name="removeCurrentTab">
|
||||||
<body>
|
<body>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
<!ENTITY newTab.accesskey "N">
|
<!ENTITY newTab.accesskey "N">
|
||||||
<!ENTITY closeTab.label "Close Tab">
|
<!ENTITY closeTab.label "Close Tab">
|
||||||
<!ENTITY closeTab.accesskey "c">
|
<!ENTITY closeTab.accesskey "c">
|
||||||
<!ENTITY closeOtherTabs.label "Close Other Tabs">
|
|
||||||
<!ENTITY closeOtherTabs.accesskey "O">
|
|
||||||
<!ENTITY reloadAllTabs.label "Reload All Tabs">
|
<!ENTITY reloadAllTabs.label "Reload All Tabs">
|
||||||
<!ENTITY reloadAllTabs.accesskey "A">
|
<!ENTITY reloadAllTabs.accesskey "A">
|
||||||
<!ENTITY reloadTab.label "Reload Tab">
|
<!ENTITY reloadTab.label "Reload Tab">
|
||||||
|
|
Загрузка…
Ссылка в новой задаче