Let 'Edit Page' use the focused frame, b=89975, r=syd, sr=hewitt

This commit is contained in:
cmanske%netscape.com 2002-01-16 05:29:43 +00:00
parent 71be933776
commit 3240caf70b
2 changed files with 9 additions and 1 deletions

View File

@ -103,6 +103,14 @@ function contentAreaFrameFocus()
}
}
function editPageOrFrame()
{
if (gFocusedURL)
editPage(gFocusedURL, window, false);
else
editPage(window._content.location.href, window, false);
}
//////////////////////////////// BOOKMARKS ////////////////////////////////////
function UpdateBookmarksLastVisitedDate(event)

View File

@ -109,7 +109,7 @@
<command id="cmd_newEditorDraft"/> -->
<command id="Browser:OpenFile" oncommand="BrowserOpenFileWindow();"/>
<command id="Browser:SavePage" oncommand="saveDocument(window._content.document);"/>
<command id="Browser:EditPage" oncommand="editPage(window._content.location.href,window, false);"/>
<command id="Browser:EditPage" oncommand="editPageOrFrame();"/>
<command id="Browser:Open" oncommand="BrowserOpenWindow();"/>
<command id="Browser:PrintSetup" oncommand="BrowserPrintSetup();"/>
<command id="Browser:Print" oncommand="BrowserPrint();"/>