From: Jakub Skoczen Date: Thu, 3 Mar 2011 11:08:11 +0000 (+0100) Subject: Display basename when no readable target name X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=db5e1ef5444588b44669c73a6e9526a171d46c35;p=mkdru-moved-to-drupal.org.git Display basename when no readable target name Hotfix for now -- the proper solution would be to either pass target name in the hash or have some lookup structure (possibly generated by 'bytarget') --- diff --git a/mkdru.theme.js b/mkdru.theme.js index 5af43ee..034b403 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -124,13 +124,17 @@ Drupal.theme.prototype.mkdruFacet = function (terms, facet, max, selections) { html += ' (' + terms[i].freq + ')
'; } - //TODO, meed to look up target name from ID if (terms.length == 0 && selections && selections.length) { for (var i=0; i'+selections[i]+' (0)
'; + + '">'+name+' (0)
'; } } }