some simple additions to make the mailing list group have a visible message count
authorBryan Clark <clarkbw@gnome.org>
Fri, 30 Jan 2009 16:19:48 -0800
changeset 41 0d8aa961206ddf2e1a3331c87eefeb3b2d26179c
parent 40 7a6e90715442dfd6dcd80d098e88ec54d42480a8
child 42 9e8e39dc38a7919574157806398e290f2c07adc9
child 51 c18b5b2c8c377cb16276258c428a5275f87e7a9d
push id1
push userroot
push dateWed, 08 Apr 2009 01:46:05 +0000
some simple additions to make the mailing list group have a visible message count
client/index.xhtml
client/searchResults.css
--- 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; }