mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Prepare mailvelope iframe to be printed, and hide other original frames
This commit is contained in:
parent
b5dc84fc09
commit
9a572dbf7d
@ -4384,6 +4384,25 @@ app.classes.mail = AppJS.extend(
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
* @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