projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d386da0
)
Add the "Done" widget.
author
Mike Taylor
<mike@indexdata.com>
Tue, 8 Apr 2014 16:09:33 +0000
(17:09 +0100)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/src/mkws-widgets.js
b/src/mkws-widgets.js
index
22b9820
..
8b43400
100644
(file)
--- 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");
+ });
+});