[open-ils-commits] r17610 - branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Sep 12 11:52:36 EDT 2010


Author: miker
Date: 2010-09-12 11:52:33 -0400 (Sun, 12 Sep 2010)
New Revision: 17610

Modified:
   branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js
Log:
Backporting r17609 from trunk: add maxValuesPerFacet attr/param

Modified: branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js	2010-09-12 15:23:46 UTC (rev 17609)
+++ branches/rel_2_0/Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js	2010-09-12 15:52:33 UTC (rev 17610)
@@ -34,6 +34,7 @@
             classOrder : null,
             searchSubmit : '',
             facetLimit : 10,
+            maxValuesPerFacet : 100,
 
             startup : function () {
                 this.populate();
@@ -49,7 +50,7 @@
                     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 @@
             },
 
             _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 = [];



More information about the open-ils-commits mailing list