From cdce456dc65604b7f183be75d0ca684d5423d80b Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 29 Apr 2014 13:51:57 +0100 Subject: [PATCH] Add MOTD widget. --- src/mkws-widgets.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); + } +}); + + -- 1.7.10.4