From a2efac5e7bc1951799517c3c63559166d11d0768 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 15 Dec 2008 20:06:59 +0000 Subject: - fix unflagged icon setting on IE - small code cleanups --- program/js/app.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'program') diff --git a/program/js/app.js b/program/js/app.js index c46997afa..7e9509ec2 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1624,7 +1624,7 @@ function rcube_webmail() if (rows[uid].flagged && this.env.flaggedicon) icn_src = this.env.flaggedicon; - else if (this.env.unflaggedicon) + else if (!rows[uid].flagged && this.env.unflaggedicon) icn_src = this.env.unflaggedicon; if (rows[uid].flagged_icon && icn_src) @@ -3491,10 +3491,6 @@ function rcube_webmail() } else if (col == 'subject' && this.message_list) this.message_list.subject_col = n+1; - else if (col == 'flag' && this.env.unflaggedicon) - { - cell.innerHTML = ''; - } } }; @@ -3556,7 +3552,7 @@ function rcube_webmail() { if (flags.flagged && this.env.flaggedicon) col.innerHTML = ''; - else if(this.env.unflaggedicon) + else if(!flags.flagged && this.env.unflaggedicon) col.innerHTML = ''; } else if (c=='attachment') -- cgit v1.2.3