Open GoogleCodeExporter opened 8 years ago
I found that if a list facet starts out as collapsed (ex:collapsed="true"), the
facet count is not displayed. This is because the list facet is not yet
populated. This chanage to Exhibit.ListFacet.prototype.update (in
list-facet.js) will force an update to the list facet even when collapsed, if
showFacetCount is true:
Exhibit.ListFacet.prototype.update = function(items) {
if (!this._settings.showFacetCount && Exhibit.FacetUtilities.isCollapsed(this)) {
this._delayedUpdateItems = items;
return;
}
this._dom.valuesContainer.style.display = "none";
this._dom.valuesContainer.innerHTML = "";
this._constructBody(this._computeFacet(items));
this._dom.valuesContainer.style.display = "block";
};
The single change is the addition of "!this._settings.showFacetCount &&" in the
first line of the update function.
Original comment by davecrum...@gmail.com
on 30 Jul 2010 at 4:33
Original comment by ryan...@csail.mit.edu
on 23 Jun 2011 at 9:47
Original issue reported on code.google.com by
davecrum...@gmail.com
on 21 Jul 2010 at 12:58