From bfb0e43c8973ed41c33eed56bad6534771a1a3ae Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 28 Jan 2015 12:21:19 +0000 Subject: [PATCH] Fix MKWS-363. When an auto-search term is provided, it fills the query box. --- src/mkws-widget.js | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.7.10.4