X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=src%2Fmkws-widget.js;fp=src%2Fmkws-widget.js;h=45b0b40b602c854eb2dbd77870938419fe92b125;hp=566f60404c5a44ecf2781c8cb5397b98a944f565;hb=f1a3747154ae806819f2fdde90939bdf78444e3e;hpb=12099f341d4d836116b636796a8e4af3306d3828 diff --git a/src/mkws-widget.js b/src/mkws-widget.js index 566f604..45b0b40 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -114,7 +114,10 @@ mkws.makeWidget = function($, team, type, node) { // them in in the subclass, as widget.autosearch is called in // the superclass, before the subclass fiddles with the // configuration. - that.team.newSearch(that, query); + var torusquery = undefined; + var target = that.config.target; + if (target) torusquery = 'udb=="' + target + '"'; + that.team.newSearch(that, query, undefined, undefined, undefined, undefined, undefined, torusquery); }); } };