From 80e7ca390c286af50166bea8db834f021bdda6cd Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 23 May 2014 14:44:36 +0000 Subject: [PATCH] Fix printing mail for Firefox printing issue --- mail/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index bd7c5e8a94..fa274a85cc 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -3181,7 +3181,9 @@ app.classes.mail = AppJS.extend( } this.egw.message('Printing....'); - this.egw.window.print(); + var display = this; + // Make sure the print happens after the content is loaded. Seems Firefox can't handle timing for print command correctly + setTimeout(function(){display.egw.window.print();},1); }, /**