From 9d6f8e8162ec7cf3fdd16d0f6527c57117af9c21 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sun, 13 Apr 2008 03:47:30 -0400
Subject: [PATCH] - don't change icon of deleted message when marking as read

---
 program/js/app.js |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 3ed6817..76d7761 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1560,13 +1560,13 @@
           rows[uid].classname = rows[uid].classname.replace(/\s*unread/, '');
           this.set_classname(rows[uid].obj, 'unread', false);
 
-          if (rows[uid].replied && this.env.repliedicon)
-            icn_src = this.env.repliedicon;
-          else if (this.env.messageicon)
+          if (this.env.messageicon)
             icn_src = this.env.messageicon;
           }
 
-        if (rows[uid].icon && icn_src)
+        if (rows[uid].icon && icn_src 
+	    && !(rows[uid].replied && this.env.repliedicon)
+            && !(rows[uid].deleted && this.env.deletedicon))
           rows[uid].icon.src = icn_src;
         }
       }
@@ -1587,6 +1587,8 @@
 
         if (rows[uid].replied && parent.rcmail.env.repliedicon)
     	  icn_src = parent.rcmail.env.repliedicon;
+        else if (rows[uid].deleted && parent.rcmail.env.deletedicon)
+    	  icn_src = parent.rcmail.env.deletedicon;
         else if (parent.rcmail.env.messageicon)
           icn_src = parent.rcmail.env.messageicon;
       

--
Gitblit v1.9.1