From 951960e052a0536b318661873ea615ab2cf34ed6 Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 28 Jul 2011 08:40:43 +0000 Subject: Delay window.print() on Safari browsers --- program/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 81bee6c1d..1814bedf2 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -252,7 +252,10 @@ function rcube_webmail() } // show printing dialog else if (this.env.action == 'print' && this.env.uid) - window.print(); + if (bw.safari) + window.setTimeout('window.print()', 10); + else + window.print(); // get unread count for each mailbox if (this.gui_objects.mailboxlist) { -- cgit v1.2.3