From cd6c934be7e4be4f8ae12e50516e610d7ecf7e4e Mon Sep 17 00:00:00 2001 From: miker Date: Sun, 12 Sep 2010 15:23:46 +0000 Subject: [PATCH] add maxValuesPerFacet attr/param git-svn-id: svn://svn.open-ils.org/ILS/trunk@17609 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js b/Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js index dab6bb921..3ac08e7a4 100644 --- a/Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js +++ b/Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js @@ -34,6 +34,7 @@ if(!dojo._hasResource["openils.widget.FacetSidebar"]) { classOrder : null, searchSubmit : '', facetLimit : 10, + maxValuesPerFacet : 100, startup : function () { this.populate(); @@ -49,7 +50,7 @@ if(!dojo._hasResource["openils.widget.FacetSidebar"]) { this.facetData = openils.widget.Searcher._cache.facetData; this._render_callback(); } else { - var limit = dojo.isIE ? this.facetLimit : null; + var limit = dojo.isIE ? this.facetLimit : this.maxValuesPerFacet; var self = this; fieldmapper.standardRequest( [ 'open-ils.search', 'open-ils.search.facet_cache.retrieve'], @@ -68,7 +69,7 @@ if(!dojo._hasResource["openils.widget.FacetSidebar"]) { }, _render_callback : function(facetData) { - var facetData = this.facetData; + var facetData = this.facetData; var classes = openils.widget.Searcher._cache.arr.cmc; if (this.classOrder && this.classOrder.length > 0) { classes = []; -- 2.11.0