diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-20 13:57:40 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-20 13:57:40 +0000 |
| commit | 1d924271b1bd9a979ff5663ec8345610c4700bba (patch) | |
| tree | 110099ff89973027c0fe27dea96da8436174922b | |
| parent | 1dfd0700f687c85b64c28dd4856af57df11dc0fe (diff) | |
Mark message read when printing it (#1326452)
git-svn-id: https://svn.roundcube.net/trunk@1121 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 9419d776d..0509395dc 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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': |
