From: Jakub Skoczen Date: Thu, 3 Mar 2011 09:23:43 +0000 (+0100) Subject: Only selection for a given facet is passed X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=4af261bb59f99c96b1e6c0d82605392249c7cc00;p=mkdruding1.git Only selection for a given facet is passed --- diff --git a/mkdruding2.js b/mkdruding2.js index 65e08d9..02e9ff3 100644 --- a/mkdruding2.js +++ b/mkdruding2.js @@ -67,12 +67,12 @@ Drupal.theme.mkdruFacet = function (terms, facet, max, selections) { html += ' (' + terms[i].freq + ')
'; } - var sel = selections[facet]; - if (terms.length == 0 && sel && sel.length) { - for (var i=0; i'+sel[i]+' (0)
'; + if (terms.length == 0 && selections && selections.length) { + for (var i=0; i'+selections[i]+' (0)
'; } } }