From: Jakub Skoczen Date: Thu, 3 Mar 2011 00:50:52 +0000 (+0100) Subject: Persistent selections on the facets X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=a6910cdea98f03dab9eb015902652c71b0576486;p=mkdruding2.git Persistent selections on the facets --- diff --git a/css/mkdruding2.css b/css/mkdruding2.css index 804dfc3..41ad8a5 100644 --- a/css/mkdruding2.css +++ b/css/mkdruding2.css @@ -1,3 +1,7 @@ +a.cross:hover { + text-decoration: line-through; +} + .mkdru-result-description { font-size: 0.8em; } diff --git a/mkdruding2.js b/mkdruding2.js index b1ed4fd..b29f49d 100644 --- a/mkdruding2.js +++ b/mkdruding2.js @@ -59,21 +59,14 @@ Drupal.theme.mkdruFacetContainer = function (facetsData, facetsCfg) { Drupal.theme.mkdruFacet = function (terms, facet, max) { var html = ""; for (var i = 0; i < terms.length && i < max; i++ ) { - html += '' + terms[i].name + ' (' + terms[i].freq + ')
' - ; - } - return html; -}; + var term = terms[i]; + html += '
'; -Drupal.theme.mkdruFacetLimit = function (term, link) { - if (term) { - return '

' + term.name + '

' - + '

' + Drupal.t('Show all...') + '

'; } + return html; }; -