web/data/cubicweb.facets.js
changeset 7606 01b49ec8fe80
parent 7604 1eb6090311ff
child 7628 56022cf13887
equal deleted inserted replaced
7605:48abeac162fd 7606:01b49ec8fe80
   100                     'rql': rql
   100                     'rql': rql
   101                 },
   101                 },
   102                 'ctxcomponents', 'breadcrumbs'));
   102                 'ctxcomponents', 'breadcrumbs'));
   103             }
   103             }
   104         }
   104         }
   105         var d = loadRemote('json', ajaxFuncArgs('filter_select_content', null, toupdate, rql));
   105 	var mainvar = null;
       
   106 	var index = jQuery.inArray('mainvar', zipped[0]);
       
   107 	if (index > - 1) {
       
   108             mainvar = zipped[1][index];
       
   109 	}
       
   110 
       
   111         var d = loadRemote('json', ajaxFuncArgs('filter_select_content', null, toupdate, rql, mainvar));
   106         d.addCallback(function(updateMap) {
   112         d.addCallback(function(updateMap) {
   107             for (facetId in updateMap) {
   113             for (facetId in updateMap) {
   108                 var values = updateMap[facetId];
   114                 var values = updateMap[facetId];
   109                 cw.jqNode(facetId).find('.facetCheckBox').each(function() {
   115                 cw.jqNode(facetId).find('.facetCheckBox').each(function() {
   110                     var value = this.getAttribute('cubicweb:value');
   116                     var value = this.getAttribute('cubicweb:value');