summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-20 13:57:40 +0000
committerthomascube <thomas@roundcube.net>2008-02-20 13:57:40 +0000
commit4d3f3b9a3f53ae992cf726c94e5fb769510fa3bb (patch)
treea29a154f490c4b790ef370ce6098135736225e7c /program
parente8f8fe9ed3cce2c3fba437c1c8754cdaa78a208b (diff)
Mark message read when printing it (#1326452)
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 9419d776d..0509395dc 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -886,11 +886,15 @@ function rcube_webmail()
case 'print':
var uid;
if (uid = this.get_single_uid())
- {
+ {
ref.printwin = window.open(this.env.comm_path+'&_action=print&_uid='+uid+'&_mbox='+urlencode(this.env.mailbox)+(this.env.safemode ? '&_safe=1' : ''));
if (this.printwin)
+ {
setTimeout(function(){ ref.printwin.focus(); }, 20);
+ if (this.env.action != 'show')
+ this.toggle_read_status('read', [uid]);
}
+ }
break;
case 'viewsource':