some simple additions to make the mailing list group have a visible message count
some simple additions to make the mailing list group have a visible message count
--- a/client/index.xhtml
+++ b/client/index.xhtml
@@ -82,17 +82,21 @@
.mousedown(function() {
var c = document.getElementById("constraints");
c.clear();
c.addDiscussion(row.value);
var query = document.getElementById("query");
query.updateConstraints(c);
}
)
- .text(row.value["id"] + " (" + row.value["count"] + ")")
+ .text(row.value["id"] + " ")
+ .append($(document.createElement("span"))
+ .addClass("count")
+ .text("(" + row.value["count"] + ")")
+ )
)
);
});
}
});
}
--- a/client/searchResults.css
+++ b/client/searchResults.css
@@ -113,9 +113,10 @@ search-toolbox > .notifications { float:
#right { display: table-cell; border: 2px solid lightsteelblue; -moz-border-radius: 4px; }
.sMailbox { display: block; margin: 0.2ex 0px; }
#dynamic-mailboxes { margin: 1ex 0px; max-width: 10em; }
.dMailbox { margin: 1ex 0px; padding: 0px; border: 1px solid lightsteelblue; -moz-border-radius: 0.5em; }
.dMailbox .title { background-color: steelblue; color: white; padding: 0.2ex 0.4em; position: relative; }
.dMailbox .title { -moz-border-radius-topright: 0.2em; -moz-border-radius-topleft: 0.2em; }
.dMailbox .title .toggle { position: absolute; right: 0.5em; font-weight: bold; cursor: pointer; }
.dMailbox .results { list-style: none; margin: 0px; padding: 0.4ex 0.2em; font-size: small; white-space: nowrap; overflow: hidden; }
-.dMailbox .results li { padding: 0.2ex 0px; }
+.dMailbox .results li { padding: 0.2ex 0px; position: relative; }
+.dMailbox .results li a span.count { position: absolute; right: -0.4ex; background-color: #fff; padding: 0px 0.4ex; }