mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
289966f27f
r=alecf, a=brendan@mozilla.org update tasks menu to spec
62 lines
2.0 KiB
XML
62 lines
2.0 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
|
|
%brandDTD;
|
|
<!ENTITY % mailTasksOverlayDTD SYSTEM "chrome://messenger/locale/mailTasksOverlay.dtd" >
|
|
%mailTasksOverlayDTD;
|
|
]>
|
|
|
|
<overlay id="mailPrefsOverlay"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<script language="JavaScript">
|
|
<![CDATA[
|
|
// uses "toOpenWindowByType" function provided by utilityOverlay.js
|
|
// which is included by most clients.
|
|
function toMessengerWindow()
|
|
{
|
|
var windowDoc = "chrome://messenger/content/messenger.xul";
|
|
try
|
|
{
|
|
var layoutType = pref.GetIntPref("mail.pane_config");
|
|
windowDoc = !layoutType ? "chrome://messenger/content/messenger.xul" :
|
|
"chrome://messenger/content/mail3PaneWindowVertLayout.xul";
|
|
}
|
|
catch(ex)
|
|
{
|
|
}
|
|
toOpenWindowByType("mail:3pane", windowDoc);
|
|
}
|
|
|
|
function toAddressBook()
|
|
{
|
|
toOpenWindowByType("mail:addressbook", "chrome://messenger/content/addressbook/addressbook.xul");
|
|
}
|
|
|
|
function toNewsgroups()
|
|
{
|
|
dump ("Sorry, command not implemented.\n");
|
|
}
|
|
|
|
function toImport()
|
|
{
|
|
window.openDialog("chrome://messenger/content/importDialog.xul","importDialog","chrome, modal", {importType: "addressbook"});
|
|
}
|
|
|
|
]]>
|
|
</script>
|
|
|
|
<box id="taskButtons">
|
|
<button class="button-toolbar-4 taskbutton" id="mini-mail" onclick="toMessengerWindow()"
|
|
position="2" tooltip="aTooltip" tooltiptext="&taskMessenger.tooltip;"/>
|
|
</box>
|
|
|
|
<menupopup id="taskPopup">
|
|
<menuitem position="2" value="&messengerCmd.label;" accesskey="&messengerCmd.accesskey;" oncommand="toMessengerWindow()"/>
|
|
<menuitem position="3" value="&newsgroupsCmd.label;" accesskey="&newsgroupsCmd.accesskey;" disabled="true" oncommand="toNewsgroups()"/>
|
|
</menupopup>
|
|
|
|
</overlay>
|
|
|