From fd660ac0e2af4fc3c2633cfd19bd31fd7a905951 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 01 Nov 2005 17:18:05 -0500
Subject: [PATCH] Fixed safe_mode issue and visual bug

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

diff --git a/program/js/app.js b/program/js/app.js
index 8cc3858..a61cc1e 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -6,7 +6,7 @@
  | Copyright (C) 2005, RoundCube Dev, - Switzerland                      |
  | Licensed under the GNU GPL                                            |
  |                                                                       |
- | Modified: 2005/10/26 (roundcube)                                      |
+ | Modified: 2005/11/01 (roundcube)                                      |
  |                                                                       |
  +-----------------------------------------------------------------------+
  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
@@ -1203,16 +1203,15 @@
         if (this.message_rows[uid].classname.indexOf('unread')<0 && this.message_rows[uid].unread)
           {
           this.message_rows[uid].classname += ' unread';
-          if (!this.in_selection(uid))
-            this.message_rows[uid].obj.className += ' unread';
+          this.set_classname(this.message_rows[uid].obj, 'unread', true);
+
           if (this.env.unreadicon)
             icn_src = this.env.unreadicon;
           }
         else if (!this.message_rows[uid].unread)
           {
           this.message_rows[uid].classname = this.message_rows[uid].classname.replace(/\s*unread/, '');
-          if (!this.in_selection(uid))
-            this.message_rows[uid].obj.className = this.message_rows[uid].obj.className.replace(/\s*unread/, '');
+          this.set_classname(this.message_rows[uid].obj, 'unread', false);
 
           if (this.message_rows[uid].replied && this.env.repliedicon)
             icn_src = this.env.repliedicon;

--
Gitblit v1.9.1