Add null widget definitions for Query, MOTDContainer, Button and Popup.
[mkws-moved-to-github.git] / src / mkws-widget-main.js
index 69d1360..05a1b91 100644 (file)
@@ -413,3 +413,18 @@ mkws.registerWidgetType('MOTD', function() {
 });
 
 
+// Some elements have mkws* classes that makes them appear as widgets
+// -- for example, because we want to style them using CSS -- but have
+// no actual functionality. We register these to prevent ignorable
+// warnings when they occur.
+
+mkws.registerWidgetType('Query', function() {});
+mkws.registerWidgetType('MOTDContainer', function() {});
+mkws.registerWidgetType('Button', function() {});
+mkws.registerWidgetType('Popup', function() {});
+
+// Not sure whether the following should have functionality:
+// Select              HTMLFormElement
+// TermlistContainer1  HTMLTableCellElement
+// TermlistContainer2  HTMLDivElement
+// Bytarget            HTMLDivElement