X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-core.js;h=ab536f5cb1d1eb9db17b2834291f054e921ecbae;hb=9f2178ead299b1804c59b32773e3a7902da673fa;hp=0e65f27bdaca5b3c70a01d34c25829884a4766b0;hpb=ff74c45c811734751b090f858b35fae17d729ce6;p=mkws-moved-to-github.git diff --git a/src/mkws-core.js b/src/mkws-core.js index 0e65f27..ab536f5 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -332,18 +332,18 @@ mkws.pagerNext = function(tname) { function resizePage() { var list = ["mkwsSwitch", "mkwsLang"]; - var targetWidth = mkws.config.responsive_design_width; + var threshhold = mkws.config.responsive_design_width; var width = $(window).width(); if (mkws.width === undefined) { // No state change, since we have no previous state - } else if (mkws.width > targetWidth && width <= targetWidth) { + } else if (mkws.width > threshhold && width <= threshhold) { log("wide -> narrow"); - } else if (mkws.width <= targetWidth && width > targetWidth) { + } else if (mkws.width <= threshhold && width > threshhold) { log("narrow -> wide"); } - if (mkws.width > targetWidth && width <= targetWidth) { + if (mkws.width > threshhold && width <= threshhold) { log("changing from wide to narrow: " + width); $(".mkwsTermlist-Container-wide").hide(); $(".mkwsTermlist-Container-narrow").show(); @@ -354,7 +354,7 @@ mkws.pagerNext = function(tname) { $("." + list[i] + ".mkwsTeam_" + tname).hide(); } } - } else if (mkws.width <= targetWidth && width > targetWidth) { + } else if (mkws.width <= threshhold && width > threshhold) { log("changing from narrow to wide: " + width); $(".mkwsTermlist-Container-wide").show(); $(".mkwsTermlist-Container-narrow").hide();