summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
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);
}