Comment.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 099e67f..57bc3f5 100644 (file)
@@ -199,6 +199,7 @@ function my_onterm(data) {
     var termlist = document.getElementById("mkwsTermlists");
     replaceHtml(termlist, acc.join(''));
 
+    // ### I don't believe these lines should be necessary (but they are)
     if (mkws_config.responsive_design)
         mkws_mobile_resize();
 }
@@ -617,13 +618,7 @@ function mkws_html_all(config) {
     if (mkws_config.responsive_design) {
        // Responsive web design - change layout on the fly based on
        // current screen width. Required for mobile devices.
-       var timeout = null;
-       $(window).resize( function(e) {
-           if (timeout)
-               clearTimeout(timeout);
-           timeout = setTimeout(function () { mkws_mobile_resize() }, 50);
-       });
-
+       $(window).resize( function(e) { mkws_mobile_resize() });
        // initial check after page load
        $(document).ready(function() { mkws_mobile_resize() });
     }