Facet value is directly included in action, rather than having it refer obliquely...
authorMike Taylor <mike@indexdata.com>
Tue, 10 Jun 2014 14:31:12 +0000 (15:31 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 10 Jun 2014 14:31:12 +0000 (15:31 +0100)
src/mkws-widget-termlists.js

index 715eff2..cb07b28 100644 (file)
@@ -58,7 +58,7 @@ mkws.registerWidgetType('Facet', function() {
 
       var action = '';
       if (fn) {
-        action = 'mkws.' + fn + '(\'' + teamName + '\', \'' + datum + '\', this.firstChild.nodeValue)';
+        action = 'mkws.' + fn + '(\'' + teamName + '\', \'' + datum + '\', \'' + data[i].name + '\')';
       }
 
       acc.push('<div class="mkwsTerm">',