зеркало из https://github.com/mozilla/pjs.git
Bug 468170 - Menu entry "Help > Release Notes" opens in same tab instead of new one. r=gavin
This commit is contained in:
Родитель
30c90ed112
Коммит
7f9d2058a0
|
@ -95,7 +95,7 @@
|
|||
<menuitem id="releaseNotes"
|
||||
accesskey="&helpReleaseNotes.accesskey;"
|
||||
label="&helpReleaseNotes.label;"
|
||||
oncommand="openReleaseNotes(event)"
|
||||
oncommand="openReleaseNotes()"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
<menuseparator id="updateSeparator"/>
|
||||
#ifdef MOZ_UPDATER
|
||||
|
|
|
@ -441,13 +441,13 @@ function openAdvancedPreferences(tabID)
|
|||
* determine where the release notes page should be displayed based
|
||||
* on modifiers (e.g. Ctrl = new tab)
|
||||
*/
|
||||
function openReleaseNotes(event)
|
||||
function openReleaseNotes()
|
||||
{
|
||||
var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
|
||||
.getService(Components.interfaces.nsIURLFormatter);
|
||||
var relnotesURL = formatter.formatURLPref("app.releaseNotesURL");
|
||||
|
||||
openUILink(relnotesURL, event, false, true);
|
||||
openUILinkIn(relnotesURL, "tab");
|
||||
}
|
||||
|
||||
#ifdef MOZ_UPDATER
|
||||
|
|
Загрузка…
Ссылка в новой задаче