}
}
$('.mkdru-facet-' + facet).html(
- Drupal.theme('mkdruFacet', terms, facet, mkdru.facets[facet].max, hash));
+ Drupal.theme('mkdruFacet', terms, facet, mkdru.facets[facet].max,
+ hash[facet]));
}
};
+ ')</span><br/>';
}
//TODO, meed to look up target name from ID
- var sel = selections[facet];
- if (terms.length == 0 && sel && sel.length) {
- for (var i=0; i<sel.length; i++) {
- if (sel[i]) {
- html += '<a class="cross" href="'+mkdru.removeLimit(facet, sel[i])
- + '"><strong>'+sel[i]+'</strong></a><span> (0)</span><br/>';
+ if (terms.length == 0 && selections && selections.length) {
+ for (var i=0; i<selections.length; i++) {
+ if (selections[i]) {
+ html += '<a class="cross" href="'
+ + mkdru.removeLimit(facet, selections[i])
+ + '"><strong>'+selections[i]+'</strong></a><span> (0)</span><br/>';
}
}
}