From 5d97acbb3c5f80d36331e9ef1356ff52e4223b59 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 4 Apr 2008 06:59:07 +0000 Subject: improved r1213 change: removed redundant code and used mark_message() instead of toggle_read_status() (which should be used only inside mark_message() function) --- program/js/app.js | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 94b329d65..4359e5985 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -892,7 +892,7 @@ function rcube_webmail() { setTimeout(function(){ ref.printwin.focus(); }, 20); if (this.env.action != 'show') - this.toggle_read_status('read', [uid]); + this.mark_message('read', uid); } } break; @@ -1486,6 +1486,7 @@ function rcube_webmail() this.mark_message = function(flag, uid) { var a_uids = new Array(); + var r_uids = new Array(); var selection = this.message_list ? this.message_list.get_selection() : new Array(); if (uid) @@ -1496,26 +1497,35 @@ function rcube_webmail() { for (var id, n=0; n