X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-termlists.js;h=467ff9dd2ca319b4825fa534b679f9c917f18aba;hb=bd54409ec7e36042bf8d42eb2d0bce6f9e8b4ef8;hp=1f13820e4177293d8d551d6ce920390ae197058a;hpb=ed4b067f8083566fa9de056fd7629278228bb2a5;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index 1f13820..467ff9d 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -53,9 +53,8 @@ mkws.registerWidgetType('Facet', function() { var action = ''; if (!pzIndex) { // Special case: target selection - acc.push('target_id='+data[i].id+' '); if (!that.team.targetFiltered(data[i].id)) { - action = 'mkws.limitTarget(\'' + teamName + '\', this.getAttribute(\'target_id\'),this.firstChild.nodeValue)'; + action = 'mkws.limitTarget(\'' + teamName + '\', \'' + data[i].id + '\', this.firstChild.nodeValue)'; } } else { action = 'mkws.limitQuery(\'' + teamName + '\', \'' + pzIndex + '\', this.firstChild.nodeValue)';