mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-25 05:15:25 +00:00
Monotone-Parent: 54bb84ab8b59e2b96267864370c2253fbc5d3ba3
Monotone-Revision: 52e582748151e87bfde51bfd7c475d994270767b Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-07-01T15:09:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -728,21 +728,26 @@ function statusFoldersCallback(http) {
|
||||
|
||||
function updateStatusFolders(count, isDelta) {
|
||||
var span = $("unseenCount");
|
||||
var counter = span.select("SPAN").first();
|
||||
var counter = null;
|
||||
|
||||
if (span)
|
||||
counter = span.select("SPAN").first();
|
||||
|
||||
if (typeof count == "undefined")
|
||||
count = parseInt(counter.innerHTML);
|
||||
else if (isDelta)
|
||||
count += parseInt(counter.innerHTML);
|
||||
counter.update(count);
|
||||
if (count > 0) {
|
||||
span.setStyle({ display: "inline" });
|
||||
span.up("SPAN").addClassName("unseen");
|
||||
}
|
||||
else {
|
||||
span.setStyle({ display: "none" });
|
||||
span.up("SPAN").removeClassName("unseen");
|
||||
}
|
||||
if (counter && span) {
|
||||
if (typeof count == "undefined")
|
||||
count = parseInt(counter.innerHTML);
|
||||
else if (isDelta)
|
||||
count += parseInt(counter.innerHTML);
|
||||
counter.update(count);
|
||||
if (count > 0) {
|
||||
span.setStyle({ display: "inline" });
|
||||
span.up("SPAN").addClassName("unseen");
|
||||
}
|
||||
else {
|
||||
span.setStyle({ display: "none" });
|
||||
span.up("SPAN").removeClassName("unseen");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onMessageContextMenu(event) {
|
||||
|
||||
Reference in New Issue
Block a user