зеркало из https://github.com/mozilla/gecko-dev.git
147653 - page setup commands doesn't work in mail and composer. r/sr=sspitzer,jag
This commit is contained in:
Родитель
9dfc1961ec
Коммит
adcc3950fb
|
@ -2297,7 +2297,7 @@ var nsPrintSetupCommand =
|
|||
{
|
||||
// In editor.js
|
||||
FinishHTMLSource();
|
||||
goPageSetup();
|
||||
NSPrintSetup();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@
|
|||
<menuitem label="&sendNowCmd.label;" accesskey="&sendNowCmd.accesskey;" key="key_send" command="cmd_sendNow" id="menu-item-send-now"/>
|
||||
<menuitem label="&sendLaterCmd.label;" accesskey="&sendLaterCmd.accesskey;" key="key_sendLater" command="cmd_sendLater"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="Browser:PrintSetup"/>
|
||||
<menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_printSetup"/>
|
||||
<menuitem id="printMenuItem" label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="key_print" command="cmd_print"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
|
|
@ -1486,7 +1486,7 @@ function hiddenWindowStartup()
|
|||
window.focus();
|
||||
|
||||
// Disable menus which are not appropriate
|
||||
var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage', 'Browser:PrintSetup', /*'Browser:PrintPreview',*/
|
||||
var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage', 'cmd_printSetup', /*'Browser:PrintPreview',*/
|
||||
'Browser:Print', 'canGoBack', 'canGoForward', 'Browser:Home', 'Browser:AddBookmark', 'cmd_undo',
|
||||
'cmd_redo', 'cmd_cut', 'cmd_copy','cmd_paste', 'cmd_delete', 'cmd_selectAll', 'menu_textZoom'];
|
||||
for (var id in disabledItems) {
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
<command id="Browser:SavePage" oncommand="saveDocument(window._content.document);"/>
|
||||
<command id="Browser:EditPage" oncommand="editPageOrFrame();" observes="isImage"/>
|
||||
<command id="Browser:Open" oncommand="BrowserOpenWindow();"/>
|
||||
<command id="Browser:PrintSetup" oncommand="NSPrintSetup();"/>
|
||||
<command id="cmd_printSetup" oncommand="NSPrintSetup();"/>
|
||||
<command id="Browser:Print" oncommand="NSPrint();"/>
|
||||
<command id="Browser:PrintPreview" oncommand="BrowserPrintPreview();"/>
|
||||
<command id="cmd_quit"/>
|
||||
|
@ -215,7 +215,7 @@
|
|||
<menuseparator id="saveMenuBlockEnd"/>
|
||||
<menuitem label="&editPageCmd.label;" accesskey="&editPageCmd.accesskey;" key="key_editPage" command="Browser:EditPage" />
|
||||
<menuseparator/>
|
||||
<menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="Browser:PrintSetup"/>
|
||||
<menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_printSetup"/>
|
||||
<menuitem id="printPreviewMenuItem" label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="Browser:PrintPreview"/>
|
||||
<menuitem id="printMenuItem" label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="Browser:Print"/>
|
||||
<menuseparator/>
|
||||
|
|
|
@ -139,7 +139,7 @@
|
|||
label="&editPageCmd.label;" accesskey="&editPageCmd.accesskey;"/>
|
||||
<menuseparator/>
|
||||
<menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="Browser:Print"/>
|
||||
<menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="Browser:PrintSetup"/>
|
||||
<menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_printSetup"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
insertbefore="printMenuItem"
|
||||
label="&printSetupCmd.label;"
|
||||
accesskey="&printSetupCmd.accesskey;"
|
||||
command="Browser:PrintSetup"/>
|
||||
command="cmd_printSetup"/>
|
||||
<!-- quit -->
|
||||
<menuseparator id="menu_FileQuitSeparator"/>
|
||||
<menuitem label="&quitApplicationCmd.label;" id="menu_FileQuitItem"
|
||||
|
@ -51,7 +51,7 @@
|
|||
insertafter="printMenuItemToolbar"
|
||||
label="&printSetupCmd.label;"
|
||||
accesskey="&printSetupCmd.accesskey;"
|
||||
command="Browser:PrintSetup"/>
|
||||
command="cmd_printSetup"/>
|
||||
</menupopup>
|
||||
|
||||
<!-- Find As You Type Keys -->
|
||||
|
|
|
@ -55,9 +55,6 @@
|
|||
<command id="cmd_newEditorDraft"
|
||||
disabled="true"
|
||||
oncommand="NewEditorFromDraft();"/>
|
||||
<command id="cmd_pageSetup"
|
||||
disabled="true"
|
||||
oncommand="goPageSetup();"/>
|
||||
-->
|
||||
|
||||
<menuitem id="menu_newEditor"
|
||||
|
|
Загрузка…
Ссылка в новой задаче