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:
fccf768
)
Add MOTD widget.
author
Mike Taylor
<mike@indexdata.com>
Tue, 29 Apr 2014 12:51:57 +0000
(13:51 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 29 Apr 2014 12:51:57 +0000
(13:51 +0100)
src/mkws-widgets.js
patch
|
blob
|
history
diff --git
a/src/mkws-widgets.js
b/src/mkws-widgets.js
index
e17e7e0
..
c131756
100644
(file)
--- a/
src/mkws-widgets.js
+++ b/
src/mkws-widgets.js
@@
-520,3
+520,15
@@
mkws.registerWidgetType('Lang', function() {
return query;
}
});
+
+
+mkws.registerWidgetType('MOTD', function() {
+ var container = this.team.widget('MOTDContainer');
+ if (container) {
+ alert("moving MOTD");
+ // Move the MOTD from the provided element down into the container
+ $(this.node).appendTo(container.node);
+ }
+});
+
+