mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Give more timeout to print mail to make sure the contentof iframe is there
This commit is contained in:
parent
38c227817b
commit
419f34616c
@ -4605,7 +4605,9 @@ app.classes.mail = AppJS.extend(
|
||||
|
||||
if ($mainIframe)
|
||||
{
|
||||
tmpPrintDiv[0].innerHTML = $mainIframe.contents().find('body').html();
|
||||
window.setTimeout(function(){
|
||||
tmpPrintDiv[0].innerHTML = $mainIframe.contents().find('body').html();
|
||||
}, 600);
|
||||
}
|
||||
// Attach the element to the DOM after maniupulation
|
||||
if (notAttached) $mainIframe.after(tmpPrintDiv);
|
||||
@ -4623,7 +4625,7 @@ app.classes.mail = AppJS.extend(
|
||||
// Make sure the print happens after the content is loaded. Seems Firefox and IE can't handle timing for print command correctly
|
||||
setTimeout(function(){
|
||||
egw(window).window.print();
|
||||
},100);
|
||||
},1000);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user