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

This commit is contained in:
cmanske%netscape.com 2006-09-14 06:02:21 +00:00
parent 5529879f4d
commit 5742094355
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();"/>