thomascube
2008-02-20 4d3f3b9a3f53ae992cf726c94e5fb769510fa3bb
Mark message read when printing it (#1326452)

1 files modified
6 ■■■■ changed files
program/js/app.js 6 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -886,11 +886,15 @@
      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':