Add the "Done" widget.
authorMike Taylor <mike@indexdata.com>
Tue, 8 Apr 2014 16:09:33 +0000 (17:09 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 8 Apr 2014 16:09:33 +0000 (17:09 +0100)
Shows how applications can handle bugs MKWS-48 and MKWS-49.

src/mkws-widgets.js

index 22b9820..8b43400 100644 (file)
@@ -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");
+    });
+});