From: Mike Taylor Date: Wed, 28 Jan 2015 12:21:19 +0000 (+0000) Subject: Fix MKWS-363. X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=bfb0e43c8973ed41c33eed56bad6534771a1a3ae Fix MKWS-363. When an auto-search term is provided, it fills the query box. --- diff --git a/src/mkws-widget.js b/src/mkws-widget.js index 05e39ca..4cace29 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -104,6 +104,10 @@ mkws.makeWidget = function($, team, type, node) { var that = this; var query = this.config.autosearch; if (query) { + // Should do this more elegantly with message passing + var widget = this.team.widget('query'); + 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