forked from extern/egroupware
Fix print styling for mail Display popup
This commit is contained in:
parent
4ff9464133
commit
d007da8e79
@ -2899,7 +2899,26 @@ app.classes.mail = AppJS.extend(
|
||||
*/
|
||||
mail_print: function(_action, _senders)
|
||||
{
|
||||
this.egw.message('Not yet implemented ;-)');
|
||||
|
||||
var mainIframe = jQuery('#mail-display_mailDisplayBodySrc');
|
||||
|
||||
if (jQuery('#tempPrintDiv').length == 0)
|
||||
{
|
||||
var tmpPrintDiv = jQuery(document.createElement('div'))
|
||||
.attr('id', 'tempPrintDiv')
|
||||
.addClass('tmpPrintDiv');
|
||||
if (mainIframe)
|
||||
{
|
||||
tmpPrintDiv[0].innerHTML = mainIframe.contents().find('body').html();
|
||||
}
|
||||
|
||||
jQuery('#mail-display_mailDisplayBodySrc').after(tmpPrintDiv);
|
||||
|
||||
tmpPrintDiv.find('#divAppboxHeader').remove();
|
||||
}
|
||||
|
||||
this.egw.message('Printing....');
|
||||
this.egw.window.print();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -668,3 +668,30 @@ div.mailPreviewHeaders #mail-index_previewAttachmentArea.visible {
|
||||
height: 500px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* MAIL PRINT */
|
||||
@media print {
|
||||
.mailDisplayHeaders {
|
||||
border-bottom: 0.1em solid #d7d7d7;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
#mail-display_mailDisplayBodySrc {
|
||||
display: none;
|
||||
}
|
||||
.tmpPrintDiv {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.mailDisplayContainer {
|
||||
border: none;
|
||||
overflow: visible;
|
||||
position: static;
|
||||
}
|
||||
.mailDisplayAttachments, #mail-display_mail_displayattachments {
|
||||
display: none;
|
||||
border: none;
|
||||
position: inherit;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
<template id="mail.display" template="" lang="" group="0" version="1.9.001">
|
||||
<appicon class="onlyPrint"/>
|
||||
<html id="msg"/>
|
||||
<vbox class="mailDisplay">
|
||||
<hbox>
|
||||
|
@ -662,6 +662,32 @@ div.mailPreviewHeaders #mail-index_previewAttachmentArea.visible {
|
||||
height: 500px;
|
||||
overflow: auto;
|
||||
}
|
||||
/* MAIL PRINT */
|
||||
@media print {
|
||||
.mailDisplayHeaders {
|
||||
border-bottom: 0.1em solid #d7d7d7;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
#mail-display_mailDisplayBodySrc {
|
||||
display: none;
|
||||
}
|
||||
.tmpPrintDiv {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.mailDisplayContainer {
|
||||
border: none;
|
||||
overflow: visible;
|
||||
position: static;
|
||||
}
|
||||
.mailDisplayAttachments,
|
||||
#mail-display_mail_displayattachments {
|
||||
display: none;
|
||||
border: none;
|
||||
position: inherit;
|
||||
}
|
||||
}
|
||||
#popupMainDiv {
|
||||
padding: 5px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user