From c39f6034d40e97b3ddaf9b7b28cb305f87b77488 Mon Sep 17 00:00:00 2001 From: thomasb Date: Thu, 28 Jul 2011 08:40:43 +0000 Subject: Delay window.print() on Safari browsers git-svn-id: https://svn.roundcube.net/trunk@4984 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 81bee6c1d..1814bedf2 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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