From 163a13c70f0268a5ea61ca8da9ad1d47f155fc2f Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 6 Oct 2008 09:37:07 +0000 Subject: - added 'flagged' class handling in set_message() --- program/js/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/program/js/app.js b/program/js/app.js index bf6e8bc25..85dd42f07 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1614,6 +1614,17 @@ function rcube_webmail() this.set_classname(rows[uid].obj, 'deleted', false); } + if (rows[uid].flagged && rows[uid].classname.indexOf('flagged')<0) + { + rows[uid].classname += ' flagged'; + this.set_classname(rows[uid].obj, 'flagged', true); + } + else if (!rows[uid].flagged && rows[uid].classname.indexOf('flagged')>=0) + { + rows[uid].classname = rows[uid].classname.replace(/\s*flagged/, ''); + this.set_classname(rows[uid].obj, 'flagged', false); + } + this.set_message_icon(uid); } -- cgit v1.2.3