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=94cd6f6ce266939b7abe7898ed81dae0bbef4f7a;hp=cb5708ad64738513d902d89e4ba808d9df21af92;hb=8d9192bba868d15a786b4488c79b50397c564d2e;hpb=c30140c13eeb6cc8b1fe98a1dd36126d0e92649e diff --git a/src/mkws-widget.js b/src/mkws-widget.js index cb5708a..94cd6f6 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -109,28 +109,11 @@ mkws.makeWidget = function($, team, type, node) { if (widget) { widget.node.val(query); } this.team.queue("ready").subscribe(function() { - // Postpone testing for the configuration items: these are not - // yet set for Record subclass widgets that fill them in in the - // subclass, as widget.autosearch is called in the superclass, - // before the subclass fiddles with the configuration. - var sortOrder = that.config.sort; - var maxrecs = that.config.maxrecs; - var perpage = that.config.perpage; - var limit = that.config.limit; - var targets = that.config.targets; - var targetfilter = that.config.targetfilter; - var target = that.config.target; - if (target) targetfilter = 'udb=="' + target + '"'; - - var s = "running auto search: '" + query + "'"; - if (sortOrder) s += " sorted by '" + sortOrder + "'"; - if (maxrecs) s += " restricted to " + maxrecs + " records"; - if (perpage) s += " with " + perpage + " per page"; - if (limit) s += " limited by '" + limit + "'"; - if (targets) s += " in targets '" + targets + "'"; - if (targetfilter) s += " constrained by targetfilter '" + targetfilter + "'"; - that.info(s); - + // Postpone search until the team is ready: configuration + // items are not yet set for Record subclass widgets that fill + // 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, sortOrder, maxrecs, perpage, limit, targets, targetfilter); }); }