From f7484097c9c14d64fcfacd7c629f838af803fad6 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 8 Apr 2014 17:09:33 +0100 Subject: [PATCH] Add the "Done" widget. Shows how applications can handle bugs MKWS-48 and MKWS-49. --- src/mkws-widgets.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mkws-widgets.js b/src/mkws-widgets.js index 22b9820..8b43400 100644 --- a/src/mkws-widgets.js +++ b/src/mkws-widgets.js @@ -308,3 +308,12 @@ mkws.registerWidgetType('Perpage', function() { return false; }); }); + + +mkws.registerWidgetType('Done', function() { + var that = this; + + this.team.queue("complete").subscribe(function(n) { + $(that.node).html("Search complete: found " + n + " records"); + }); +}); -- 1.7.10.4