From 181798f913b5e4c58b67f78801819638c960ab06 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sun, 19 Feb 2006 13:30:38 -0500
Subject: [PATCH] Bugfix for unread count in window title
---
program/js/app.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/program/js/app.js b/program/js/app.js
index 4e9a8bf..715bad0 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2658,7 +2658,7 @@
{
if (!this.gui_objects.mailboxlist)
return false;
-
+
var item, reg, text_obj;
mbox = String(mbox).toLowerCase().replace(this.mbox_expression, '');
item = document.getElementById('rcmbx'+mbox);
@@ -2681,7 +2681,7 @@
}
// set unread count to window title
- if (set_title && document.title)
+ if ((set_title || mbox==this.env.mailbox) && document.title)
{
var doc_title = String(document.title);
reg = /^\([0-9]+\)\s+/i;
--
Gitblit v1.9.1