зеркало из https://github.com/mozilla/pjs.git
adding home, removing stop
This commit is contained in:
Родитель
3d6d0c993f
Коммит
c62f858da2
|
@ -553,6 +553,20 @@ function loadURI(uri)
|
|||
gBrowser.webNavigation.loadURI(uri, nsIWebNavigation.LOAD_FLAGS_NONE, null, null, null);
|
||||
}
|
||||
|
||||
function BrowserHome()
|
||||
{
|
||||
var homepage = "http://www.mozilla.org";
|
||||
|
||||
var page = gPref.getCharPref("browser.startup.homepage");
|
||||
if (page != null)
|
||||
{
|
||||
var fixedUpURI = gURIFixup.createFixupURI(page, 2 /*fixup url*/ );
|
||||
homepage = fixedUpURI.spec;
|
||||
}
|
||||
|
||||
loadURI(homepage);
|
||||
}
|
||||
|
||||
function BrowserBack()
|
||||
{
|
||||
gBrowser.webNavigation.goBack();
|
||||
|
|
|
@ -119,6 +119,7 @@
|
|||
<command id="cmd_ViewDeckDefault" oncommand="BrowserViewDeckDefault()"/>
|
||||
<command id="cmd_ViewFind" oncommand="BrowserViewFind()"/>
|
||||
<command id="cmd_BrowserOpenLinkAsNewTab" oncommand="BrowserOpenLinkAsTab()" />
|
||||
<command id="cmd_BrowserHome" oncommand="BrowserHome()" />
|
||||
<command id="cmd_BrowserBack" oncommand="BrowserBack()" />
|
||||
<command id="cmd_BrowserForward" oncommand="BrowserForward()" />
|
||||
<command id="cmd_BrowserReload" oncommand="BrowserReload()" />
|
||||
|
@ -317,6 +318,10 @@
|
|||
|
||||
<menuseparator/>
|
||||
|
||||
<menuitem id="command_home"
|
||||
command="cmd_BrowserHome"
|
||||
label="&homeCmd.label;" />
|
||||
|
||||
<!-- class="menuitem-iconic" image="chrome://minimo/skin/back-color.png" -->
|
||||
<menuitem id="command_back"
|
||||
command="cmd_BrowserBack"
|
||||
|
@ -336,10 +341,6 @@
|
|||
<menuitem id="command_go"
|
||||
command="cmd_BrowserGo"
|
||||
label="&goCmd.label;" />
|
||||
|
||||
<menuitem id="command_stop"
|
||||
command="cmd_BrowserStop"
|
||||
label="&stopCmd.label;" />
|
||||
|
||||
</menupopup>
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
<!-- Context menu -->
|
||||
|
||||
<!ENTITY homeCmd.label "Home">
|
||||
<!ENTITY backCmd.label "Back">
|
||||
<!ENTITY forwardCmd.label "Forward">
|
||||
<!ENTITY stopCmd.label "Stop">
|
||||
|
|
Загрузка…
Ссылка в новой задаче