edbd78ba2667d41249ee0c521d49304c038ffeb1
galt
  Fri Feb 19 17:27:19 2021 -0800
Added counts to hgTrackUi facets. refs #25321

diff --git src/hg/js/ui.dropdownchecklist.js src/hg/js/ui.dropdownchecklist.js
index 83b4ed1..eb95315 100644
--- src/hg/js/ui.dropdownchecklist.js
+++ src/hg/js/ui.dropdownchecklist.js
@@ -251,30 +251,36 @@
 
             // the text
             var label = $("<label for=" + id + "/>");
             label.addClass("ui-dropdownchecklist-text");
             if ( optCss != null ) label.attr('style',optCss);
             label.css({ cursor: "default" });
             label.html(text);
 			if (indent) {
 				item.addClass("ui-dropdownchecklist-indent");
 			}
 			item.addClass("ui-state-default");
 			if (disabled) {
 				item.addClass("ui-state-disabled");
 			}
 	        label.click(function(e) {e.stopImmediatePropagation();});
+
+            var span = $("<span/>");
+            span.css( { cursor: "default" });
+            span.html(" (0)");
+            label.append(span);
+
             item.append(label);
 
            	// active items display themselves with hover
             item.hover(
             	function(e) {
             		var anItem = $(this);
                 	if (!anItem.hasClass("ui-state-disabled")) { anItem.addClass("ui-state-hover"); }
             	}
             , 	function(e) {
             		var anItem = $(this);
                 	anItem.removeClass("ui-state-hover");
             	}
             );
             // clicking on the checkbox synchronizes the source select
 	        checkBox.click(function(e) {