Facet value is directly included in action, rather than having it refer obliquely...
[mkws-moved-to-github.git] / 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">',