65 copyParam(zipped, extraparams, 'vid'); |
65 copyParam(zipped, extraparams, 'vid'); |
66 extraparams['divid'] = divid; |
66 extraparams['divid'] = divid; |
67 copyParam(zipped, extraparams, 'divid'); |
67 copyParam(zipped, extraparams, 'divid'); |
68 copyParam(zipped, extraparams, 'subvid'); |
68 copyParam(zipped, extraparams, 'subvid'); |
69 // paginate used to know if the filter box is acting, in which case we |
69 // paginate used to know if the filter box is acting, in which case we |
70 // want to reload action box to match current selection |
70 // want to reload action box to match current selection (we don't want |
|
71 // this from a table filter) |
71 replacePageChunk(divid, rql, vid, extraparams, true, function() { |
72 replacePageChunk(divid, rql, vid, extraparams, true, function() { |
72 jQuery(CubicWeb).trigger('facets-content-loaded', [divid, rql, vid, extraparams]); |
73 jQuery(CubicWeb).trigger('facets-content-loaded', [divid, rql, vid, extraparams]); |
73 }); |
74 }); |
74 if (paginate) { |
75 if (paginate) { |
75 // FIXME the edit box might not be displayed in which case we don't |
76 // FIXME the edit box might not be displayed in which case we don't |
76 // know where to put the potential new one, just skip this case |
77 // know where to put the potential new one, just skip this case |
77 // for now |
78 // for now |
78 if (jQuery('#edit_box').length) { |
79 if (jQuery('#edit_box').length) { |
79 reloadComponent('edit_box', rql, 'boxes', 'edit_box'); |
80 reloadComponent('edit_box', rql, 'boxes', 'edit_box'); |
80 } |
81 } |
|
82 if (jQuery('#breadcrumbs').length) { |
|
83 log('reloading breadcrumbs!', rql); |
|
84 reloadComponent('breadcrumbs', rql, 'components', 'breadcrumbs'); |
|
85 } else { log('breadcrumbs not found!'); } |
81 } |
86 } |
82 var d = asyncRemoteExec('filter_select_content', toupdate, rql); |
87 var d = asyncRemoteExec('filter_select_content', toupdate, rql); |
83 d.addCallback(function(updateMap) { |
88 d.addCallback(function(updateMap) { |
84 for (facetId in updateMap) { |
89 for (facetId in updateMap) { |
85 var values = updateMap[facetId]; |
90 var values = updateMap[facetId]; |