From 805d1cd18b79c789f477dccd8651396439a550f3 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 26 Mar 2014 17:48:50 +0000 Subject: [PATCH] New file, and the first standalone widget: mkws-widget-authname.js implements the Authname widget. Fixes bug MKWS-145. --- src/mkws-widget-authname.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/mkws-widget-authname.js diff --git a/src/mkws-widget-authname.js b/src/mkws-widget-authname.js new file mode 100644 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); + }); +}); -- 1.7.10.4