diff options
author | alecpl <alec@alec.pl> | 2008-10-06 09:37:07 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-10-06 09:37:07 +0000 |
commit | 163a13c70f0268a5ea61ca8da9ad1d47f155fc2f (patch) | |
tree | e6b8214963b675f060561375e95b839bbfe6d527 | |
parent | a164a2e64b65fbe0729f6d4326b0219f1914c139 (diff) |
- added 'flagged' class handling in set_message()
-rw-r--r-- | program/js/app.js | 11 |
1 files changed, 11 insertions, 0 deletions
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); } |