equal
deleted
inserted
replaced
41 jQuery(CubicWeb).trigger('facets-content-loading', [divid, vid, paginate, vidargs]); |
41 jQuery(CubicWeb).trigger('facets-content-loading', [divid, vid, paginate, vidargs]); |
42 var form = getNode(divid+'Form'); |
42 var form = getNode(divid+'Form'); |
43 var zipped = facetFormContent(form); |
43 var zipped = facetFormContent(form); |
44 zipped[0].push('facetargs'); |
44 zipped[0].push('facetargs'); |
45 zipped[1].push(vidargs); |
45 zipped[1].push(vidargs); |
46 var d = async_remote_exec('filter_build_rql', zipped[0], zipped[1]); |
46 var d = asyncRemoteExec('filter_build_rql', zipped[0], zipped[1]); |
47 d.addCallback(function(result) { |
47 d.addCallback(function(result) { |
48 var rql = result[0]; |
48 var rql = result[0]; |
49 var $bkLink = jQuery('#facetBkLink'); |
49 var $bkLink = jQuery('#facetBkLink'); |
50 if ($bkLink.length) { |
50 if ($bkLink.length) { |
51 var bkUrl = $bkLink.attr('cubicweb:target') + '&path=view?rql=' + rql; |
51 var bkUrl = $bkLink.attr('cubicweb:target') + '&path=view?rql=' + rql; |
78 // for now |
78 // for now |
79 if (jQuery('#edit_box').length) { |
79 if (jQuery('#edit_box').length) { |
80 reloadComponent('edit_box', rql, 'boxes', 'edit_box'); |
80 reloadComponent('edit_box', rql, 'boxes', 'edit_box'); |
81 } |
81 } |
82 } |
82 } |
83 var d = async_remote_exec('filter_select_content', toupdate, rql); |
83 var d = asyncRemoteExec('filter_select_content', toupdate, rql); |
84 d.addCallback(function(updateMap) { |
84 d.addCallback(function(updateMap) { |
85 for (facetId in updateMap) { |
85 for (facetId in updateMap) { |
86 var values = updateMap[facetId]; |
86 var values = updateMap[facetId]; |
87 jqNode(facetId).find('.facetCheckBox').each(function () { |
87 jqNode(facetId).find('.facetCheckBox').each(function () { |
88 var value = this.getAttribute('cubicweb:value'); |
88 var value = this.getAttribute('cubicweb:value'); |