From: Jakub Skoczen Date: Thu, 3 Mar 2011 10:26:33 +0000 (+0100) Subject: Rename to toggleLink X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d576c9a086d8a41794f70ae5f142768aba2de9a4;p=mkdru-moved-to-drupal.org.git Rename to toggleLink --- diff --git a/mkdru.client.js b/mkdru.client.js index a80a58d..927e6fd 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -151,10 +151,10 @@ mkdru.pz2Term = function (data) { 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; } } diff --git a/mkdru.theme.js b/mkdru.theme.js index c919ffd..5af43ee 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -117,7 +117,7 @@ Drupal.theme.prototype.mkdruFacet = function (terms, facet, max, selections) { var html = ""; for (var i = 0; i < terms.length && i < max; i++ ) { var term = terms[i]; - html += '