Merge remote branch 'origin/master' into wosch
[mkws-moved-to-github.git] / src / mkws-widgets.js
index e17e7e0..d5ec237 100644 (file)
@@ -520,3 +520,14 @@ mkws.registerWidgetType('Lang', function() {
        return query;
     }
 });
+
+
+mkws.registerWidgetType('MOTD', function() {
+    var container = this.team.widget('MOTDContainer');
+    if (container) {
+       // Move the MOTD from the provided element down into the container
+       $(this.node).appendTo(container.node);
+    }
+});
+
+