From c2074eeee90862c15cddd8d5a833567c97d625e4 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 1 May 2014 17:02:02 +0100 Subject: [PATCH] Switch and Lang widgets hide themselves when the window is narrow. --- src/mkws-widget-main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index e7bacd7..573eb04 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -228,6 +228,7 @@ mkws.registerWidgetType('Switch', function() { Records \ | \ Targets'); + widget.hideWhenNarrow(this); }); @@ -381,6 +382,7 @@ mkws.registerWidgetType('Lang', function() { } $(this.node).html(data); + widget.hideWhenNarrow(this); // set or re-set "lang" URL parameter -- 1.7.10.4