From: Mike Taylor Date: Tue, 29 Apr 2014 12:51:57 +0000 (+0100) Subject: Add MOTD widget. X-Git-Tag: 1.0.0~805 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=cdce456dc65604b7f183be75d0ca684d5423d80b;p=mkws-moved-to-github.git Add MOTD widget. --- diff --git a/src/mkws-widgets.js b/src/mkws-widgets.js index e17e7e0..c131756 100644 --- 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); + } +}); + +