summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-06 09:37:07 +0000
committeralecpl <alec@alec.pl>2008-10-06 09:37:07 +0000
commit163a13c70f0268a5ea61ca8da9ad1d47f155fc2f (patch)
treee6b8214963b675f060561375e95b839bbfe6d527 /program/js/app.js
parenta164a2e64b65fbe0729f6d4326b0219f1914c139 (diff)
- added 'flagged' class handling in set_message()
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js11
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);
}