gecko-dev/mailnews/base/resources/content/mailNavigatorOverlay.xul

54 lines
2.1 KiB
Plaintext
Raw Normal View History

2000-06-17 03:26:47 +00:00
<?xml version="1.0"?>
<!-- retrieve generic commands -->
<?xul-overlay href="chrome://messenger/content/mailOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://messenger/locale/mailNavigatorOverlay.dtd">
<overlay id="mailNavigatorOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script language="JavaScript">
<![CDATA[
function sendLink(pageUrl, pageTitle)
{
window.openDialog( "chrome://messenger/content/messengercompose/messengercompose.xul", "_blank",
"chrome,all,dialog=no",
"body='" + pageUrl + "',subject='" + pageTitle +
"',bodyislink=true");
}
function sendPage()
{
var pageUrl = window._content.location.href;
var pageTitle = window._content.document.title;
2000-06-17 03:26:47 +00:00
window.openDialog( "chrome://messenger/content/messengercompose/messengercompose.xul", "_blank",
"chrome,all,dialog=no",
"attachment='" + pageUrl.replace(/\,/g, "%2C") + "',body='" + pageUrl +
2000-06-17 03:26:47 +00:00
"',subject='" + pageTitle + "',bodyislink=true");
}
]]>
</script>
<!-- navigator specific commands -->
<broadcasterset id="broadcasterset">
2000-06-21 22:46:03 +00:00
<broadcaster id="cmd_sendPage" value="&sendPage.label;" accesskey="&sendPage.accesskey;" oncommand="sendPage();"/>
<broadcaster id="Browser:SendLink" value="&sendLinkCmd.label;" accesskey="&sendLinkCmd.accesskey;" oncommand="sendLink(window._content.location.href, window._content.document.title);"/>
2000-06-17 03:26:47 +00:00
</broadcasterset>
<!-- navigator specific UI items -->
<menupopup id="menu_NewPopup">
2000-08-13 06:15:30 +00:00
<menuitem id="menu_newCard" insertafter="menu_newNavigator" observes="cmd_newCard" position="3"/>
<menuitem id="menu_newMessage" insertafter="menu_newNavigator" key="key_newMessage" observes="cmd_newMessage" position="2"/>
2000-06-17 03:26:47 +00:00
</menupopup>
<menupopup id="menu_FilePopup">
<menuitem id="menu_sendPage" observes="cmd_sendPage" position="11"/>
<menuitem id="menu_sendLink" observes="Browser:SendLink" position="12"/>
</menupopup>
</overlay>