fix OR in facets stable
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Mon, 07 Sep 2009 13:53:12 +0200
branchstable
changeset 3107 0829808e93c1
parent 3106 226da883d17a
child 3108 aa43c0c22b98
child 3142 5c07c3b2b332
fix OR in facets
web/data/cubicweb.facets.js
--- a/web/data/cubicweb.facets.js	Thu Sep 03 13:06:36 2009 +0200
+++ b/web/data/cubicweb.facets.js	Mon Sep 07 13:53:12 2009 +0200
@@ -130,9 +130,10 @@
 		});
 		facet.find('div.facetCheckBox').click(function () {
 		    var $this = jQuery(this);
-		    if ($this.hasClass('facetValueDisabled')){
-		     	    return
-		    }
+		    // NOTE : add test on the facet operator (i.e. OR, AND)
+		    // if ($this.hasClass('facetValueDisabled')){
+		    //  	    return
+		    // }
 		    if ($this.hasClass('facetValueSelected')) {
 			$this.removeClass('facetValueSelected');
 			$this.find('img').each(function (i){