summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-06 09:37:07 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-06 09:37:07 +0000
commit53a9bda63cb9769124c6c14c28c96e489d297062 (patch)
treedd1cad033bd26e1d6f254ee31c8b15312ad00850 /roundcubemail/program
parentd0c486a6801249f2d35fa30f70cf749eafbd302b (diff)
- added 'flagged' class handling in set_message()
git-svn-id: https://svn.roundcube.net/trunk@1943 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index bf6e8bc25..85dd42f07 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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);
}