diff options
author | thomascube <thomas@roundcube.net> | 2011-07-28 08:40:43 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-07-28 08:40:43 +0000 |
commit | 951960e052a0536b318661873ea615ab2cf34ed6 (patch) | |
tree | 824ceeca8c514faf102cd2bf20ebcf4a742491a8 /program | |
parent | b0eb95a662e537c9198d0df4ac841b5d3d4389d8 (diff) |
Delay window.print() on Safari browsers
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |