mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 07:21:04 +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:
|
* Mailvelope (clientside PGP) integration:
|
||||||
* - detect Mailvelope plugin and open "egroupware" keyring (app_base.mailvelopeAvailable and _mailvelopeOpenKeyring)
|
* - 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
|
// hide our iframe to give space for mailvelope iframe with encrypted content
|
||||||
iframe.hide();
|
iframe.hide();
|
||||||
|
self.prepareMailvelopePrint();
|
||||||
},
|
},
|
||||||
function(_err)
|
function(_err)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user