var term = terms[i];
var value = facet == "source" ? term.id : term.name;
if (mkdru.contains(hash, facet, value)) { //enabled
- term.hashQuery = mkdru.removeLimit(facet, value);
+ term.toggleLink = mkdru.removeLimit(facet, value);
term.selected = true;
} else { //disabled
- term.hashQuery = mkdru.addLimit(facet, value);
+ term.toggleLink = mkdru.addLimit(facet, value);
term.selected = false;
}
}
var html = "";
for (var i = 0; i < terms.length && i < max; i++ ) {
var term = terms[i];
- html += '<a href="'+term.hashQuery+'"';
+ html += '<a href="'+term.toggleLink+'"';
if (term.selected) html += ' class="cross"><strong';
html += '>'+terms[i].name;
if (term.selected) html += "</strong>";