summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-07-28 08:40:43 +0000
committerthomascube <thomas@roundcube.net>2011-07-28 08:40:43 +0000
commit951960e052a0536b318661873ea615ab2cf34ed6 (patch)
tree824ceeca8c514faf102cd2bf20ebcf4a742491a8 /program/js
parentb0eb95a662e537c9198d0df4ac841b5d3d4389d8 (diff)
Delay window.print() on Safari browsers
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js5
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) {