From 6c378665b37e896319bf50f7d4e3d71d686b794e Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 14 Oct 2015 12:30:57 +0100 Subject: [PATCH] Fix MKWS-414. Search-form widget now correctly passes the widget object into team.newsearch, rather than the DOM object associated with it. --- src/mkws-widget-main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 2d47617..a21fd42 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -286,9 +286,10 @@ mkws.registerWidgetType('search', function() { mkws.registerWidgetType('search-form', function() { var team = this.team; + var that = this; this.node.submit(function() { var val = team.widget('query').value(); - team.newSearch(this, val); + team.newSearch(that, val); return false; }); }); -- 1.7.10.4