From 03d772e80d9cc059eed12a24cd9e9a3dc850068a Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sun, 23 Jan 2011 11:11:22 -0500
Subject: [PATCH] Also wrap unread count in span on server side (#1487720)

---
 program/include/main.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/include/main.inc b/program/include/main.inc
index 8e8de03..d79ba2c 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1492,7 +1492,7 @@
       $classes[] = 'unread';
 
     $js_name = JQ($folder['id']);
-    $html_name = Q($foldername . ($unread ? " ($unread)" : ''));
+    $html_name = Q($foldername) . ($unread ? html::span('unreadcount', " ($unread)") : '');
     $link_attrib = $folder['virtual'] ? array() : array(
       'href' => rcmail_url('', array('_mbox' => $folder['id'])),
       'onclick' => sprintf("return %s.command('list','%s',this)", JS_OBJECT_NAME, $js_name),

--
Gitblit v1.9.1