зеркало из https://github.com/mozilla/pjs.git
Restore 'Close other tabs' to the tabs context menu.
This commit is contained in:
Родитель
9ed1ae27d1
Коммит
b39e11f1c3
|
@ -71,6 +71,10 @@
|
|||
tbattr="tabbrowser-multiple"
|
||||
oncommand="var tabbrowser = this.parentNode.parentNode.parentNode.parentNode;
|
||||
tabbrowser.removeTab(tabbrowser.mContextTab);"/>
|
||||
<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"
|
||||
|
@ -704,6 +708,24 @@
|
|||
</body>
|
||||
</method>
|
||||
|
||||
<method name="removeAllTabsBut">
|
||||
<parameter name="aTab"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aTab.localName != "tab")
|
||||
aTab = this.mCurrentTab;
|
||||
else
|
||||
this.mTabContainer.selectedItem = aTab;
|
||||
|
||||
while (this.mTabContainer.lastChild != aTab)
|
||||
this.removeTab(this.mTabContainer.lastChild);
|
||||
|
||||
while (aTab.previousSibling)
|
||||
this.removeTab(aTab.previousSibling);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="removeCurrentTab">
|
||||
<body>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
<!ENTITY untitledTab "(Untitled)">
|
||||
<!ENTITY newTab.label "New Tab">
|
||||
<!ENTITY newTab.accesskey "N">
|
||||
<!ENTITY closeTab.label "Close Tab">
|
||||
<!ENTITY closeTab.accesskey "c">
|
||||
<!ENTITY reloadAllTabs.label "Reload All Tabs">
|
||||
<!ENTITY reloadAllTabs.accesskey "A">
|
||||
<!ENTITY reloadTab.label "Reload Tab">
|
||||
<!ENTITY reloadTab.accesskey "r">
|
||||
<!ENTITY newTabButton.tooltip "Open a new tab">
|
Загрузка…
Ссылка в новой задаче