From: Jakub Skoczen Date: Tue, 8 Mar 2011 09:16:58 +0000 (+0100) Subject: Checkboxy facet browser X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6d3e45d1efa44a92bbec357dde94c669c316deb9;p=mkdruding2.git Checkboxy facet browser --- diff --git a/mkdruding2.js b/mkdruding2.js index 8321feb..a8750d7 100644 --- a/mkdruding2.js +++ b/mkdruding2.js @@ -51,7 +51,7 @@ Drupal.theme.mkdruFacetContainer = function (facetsCfg) { html += ''+f.displayName +''; html += '
'; - html += '
'; + html += '
'; html += '
'; html += '' } @@ -63,12 +63,13 @@ Drupal.theme.mkdruFacet = function (terms, facet, max, selections) { var html = ""; for (var i = 0; i < terms.length && i < max; i++ ) { var term = terms[i]; - html += '
'; + var id = term.name.split(/w+/).join("-").toLowerCase(); + html += '
'; + html += ''+term.name; + html += ' ('+term.freq+')
'; } if (terms.length == 0 && selections && selections.length) { for (var i=0; i'+name+'
(0)
'; + html += '
'; + html += '
'; } } }