From: Mike Taylor Date: Wed, 10 Jul 2013 11:51:50 +0000 (+0100) Subject: Cleaner debugging output. X-Git-Tag: 0.9.1~275^2~12 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=1ef0d1a497b0f4e513406dc1279edcf70d4c7ab0;p=mkws-moved-to-github.git Cleaner debugging output. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 7827b68..9be0313 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -786,24 +786,21 @@ function mkws_html_lang(mkws_config) { } function mkws_mobile_resize () { - debug("resize height: " + $(window).height() + ", width: " + $(window).width()); var list = ["mkwsSwitch"]; - var obj; - // alert($(window).width()); var width = mkws_config.responsive_design_width || 980; var parentId = $("#mkwsTermlists").parent().attr('id'); if ($(window).width() <= width && parentId === "mkwsTermlistContainer1") { - debug("changing from wide to narrow"); + debug("changing from wide to narrow: " + $(window).width()); $("#mkwsTermlists").appendTo($("#mkwsTermlistContainer2")); for(var i = 0; i < list.length; i++) { $("#" + list[i]).hide(); } } else if ($(window).width() > width && parentId === "mkwsTermlistContainer2") { - debug("changing from narrow to wide"); + debug("changing from narrow to wide: " + $(window).width()); $("#mkwsTermlists").appendTo($("#mkwsTermlistContainer1")); for(var i = 0; i < list.length; i++) { $("#" + list[i]).show();