Fix MKWS-414.
[mkws-moved-to-github.git] / src / mkws-widget-main.js
index 2d47617..a21fd42 100644 (file)
@@ -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;
   });
 });