web/data/cubicweb.facets.js
branchstable
changeset 5112 5bf8baecfaf8
parent 3129 fab471bee6c1
child 5658 7b9553a9db65
child 5668 7bd6a8a126b8
equal deleted inserted replaced
5111:9f3ea34f98d1 5112:5bf8baecfaf8
    45     var d = asyncRemoteExec('filter_build_rql', zipped[0], zipped[1]);
    45     var d = asyncRemoteExec('filter_build_rql', zipped[0], zipped[1]);
    46     d.addCallback(function(result) {
    46     d.addCallback(function(result) {
    47 	var rql = result[0];
    47 	var rql = result[0];
    48 	var $bkLink = jQuery('#facetBkLink');
    48 	var $bkLink = jQuery('#facetBkLink');
    49 	if ($bkLink.length) {
    49 	if ($bkLink.length) {
    50 	    var bkUrl = $bkLink.attr('cubicweb:target') + '&path=view?rql=' + rql;
    50 	    var bkPath = 'view?rql=' + escape(rql);
    51 	    if (vid) {
    51 	    if (vid) {
    52 		bkUrl += '&vid=' + vid;
    52 		bkPath += '&vid=' + escape(vid);
    53 	    }
    53 	    }
       
    54 	    var bkUrl = $bkLink.attr('cubicweb:target') + '&path=' + escape(bkPath);
    54 	    $bkLink.attr('href', bkUrl);
    55 	    $bkLink.attr('href', bkUrl);
    55 	}
    56 	}
    56 	var toupdate = result[1];
    57 	var toupdate = result[1];
    57 	var extraparams = vidargs;
    58 	var extraparams = vidargs;
    58 	var displayactions = jQuery('#' + divid).attr('cubicweb:displayactions');
    59 	var displayactions = jQuery('#' + divid).attr('cubicweb:displayactions');