mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Prepare mailvelope iframe to be printed, and hide other original frames
This commit is contained in:
parent
b5dc84fc09
commit
9a572dbf7d
@ -4383,7 +4383,26 @@ app.classes.mail = AppJS.extend(
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {type} _keyring
|
||||
* @returns {undefined}
|
||||
*/
|
||||
prepareMailvelopePrint: function()
|
||||
{
|
||||
var tempPrint = jQuery('div#tempPrintDiv');
|
||||
var mailvelopeTopContainer = jQuery('div.mailDisplayContainer');
|
||||
var iframe = jQuery(this.mailvelope_iframe_selector);
|
||||
|
||||
if (tempPrint.length >0)
|
||||
{
|
||||
tempPrint.hide();
|
||||
iframe.addClass('mailvelopeIframe');
|
||||
mailvelopeTopContainer.addClass('mailvelopeTopContainer');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Mailvelope (clientside PGP) integration:
|
||||
* - detect Mailvelope plugin and open "egroupware" keyring (app_base.mailvelopeAvailable and _mailvelopeOpenKeyring)
|
||||
@ -4415,6 +4434,7 @@ app.classes.mail = AppJS.extend(
|
||||
{
|
||||
// hide our iframe to give space for mailvelope iframe with encrypted content
|
||||
iframe.hide();
|
||||
self.prepareMailvelopePrint();
|
||||
},
|
||||
function(_err)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user