web/data/cubicweb.facets.js
changeset 7606 01b49ec8fe80
parent 7604 1eb6090311ff
child 7628 56022cf13887
--- a/web/data/cubicweb.facets.js	Fri Jul 01 15:26:43 2011 +0200
+++ b/web/data/cubicweb.facets.js	Fri Jul 01 15:26:44 2011 +0200
@@ -102,7 +102,13 @@
                 'ctxcomponents', 'breadcrumbs'));
             }
         }
-        var d = loadRemote('json', ajaxFuncArgs('filter_select_content', null, toupdate, rql));
+	var mainvar = null;
+	var index = jQuery.inArray('mainvar', zipped[0]);
+	if (index > - 1) {
+            mainvar = zipped[1][index];
+	}
+
+        var d = loadRemote('json', ajaxFuncArgs('filter_select_content', null, toupdate, rql, mainvar));
         d.addCallback(function(updateMap) {
             for (facetId in updateMap) {
                 var values = updateMap[facetId];