From bfcde83cdc5d8eaa8ed02cd2a792cf4af190971c Mon Sep 17 00:00:00 2001 From: alec 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) git-svn-id: https://svn.roundcube.net/trunk@1246 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'roundcubemail') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 94b329d65..4359e5985 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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