From af9cab5eefe1e3638127c1873191fe5db736738f Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 2 May 2014 17:43:39 +0100 Subject: [PATCH] Merge the two(!) definitions of Results widget. The new one (generate internal HTML) was overriding the old one (set up notifications of autosearch events), so that autosearch no longer worked on Results widgets. (We didn't notice because most autosearch demos use Records widgets.) --- src/mkws-widget-main.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 573eb04..9bb08eb 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -117,13 +117,6 @@ mkws.registerWidgetType('Pager', function() { }); -mkws.registerWidgetType('Results', function() { - // Nothing to do apart from act as an autosearch trigger - // Contained elements do all the real work - widget.autosearch(this); -}); - - mkws.registerWidgetType('Records', function() { var that = this; var team = this.team; @@ -276,6 +269,8 @@ mkws.registerWidgetType('Results', function() { \ \ '); + + widget.autosearch(this); }); -- 1.7.10.4