From: Mike Taylor Date: Wed, 14 Oct 2015 11:30:57 +0000 (+0100) Subject: Fix MKWS-414. X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6c378665b37e896319bf50f7d4e3d71d686b794e;p=mkws-moved-to-github.git Fix MKWS-414. Search-form widget now correctly passes the widget object into team.newsearch, rather than the DOM object associated with it. --- 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; }); });