From db5e1ef5444588b44669c73a6e9526a171d46c35 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Thu, 3 Mar 2011 12:08:11 +0100 Subject: [PATCH] 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') --- mkdru.theme.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)
'; } } } -- 1.7.10.4