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:
d962687
)
New file, and the first standalone widget:
author
Mike Taylor
<mike@indexdata.com>
Wed, 26 Mar 2014 17:48:50 +0000
(17:48 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 26 Mar 2014 17:48:50 +0000
(17:48 +0000)
mkws-widget-authname.js implements the Authname widget.
Fixes bug MKWS-145.
src/mkws-widget-authname.js
[new file with mode: 0644]
patch
|
blob
diff --git a/src/mkws-widget-authname.js
b/src/mkws-widget-authname.js
new file mode 100644
(file)
index 0000000..
a517e80
--- /dev/null
+++ b/
src/mkws-widget-authname.js
@@ -0,0
+1,7
@@
+mkws.registerWidgetType('Authname', function() {
+ var that = this;
+
+ this.team.queue("authenticated").subscribe(function(authName) {
+ $(that.node).html(authName);
+ });
+});