Consolidate both narrow/wide clauses.
authorMike Taylor <mike@indexdata.com>
Wed, 30 Apr 2014 15:54:33 +0000 (16:54 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 30 Apr 2014 15:54:33 +0000 (16:54 +0100)
src/mkws-core.js

index ab536f5..e01b3e1 100644 (file)
@@ -338,12 +338,6 @@ mkws.pagerNext = function(tname) {
         if (mkws.width === undefined) {
             // No state change, since we have no previous state
         } else if (mkws.width > threshhold && width <= threshhold) {
-            log("wide -> narrow");
-        } else if (mkws.width <= threshhold && width > threshhold) {
-            log("narrow -> wide");
-        }
-
-       if (mkws.width > threshhold && width <= threshhold) {
            log("changing from wide to narrow: " + width);
            $(".mkwsTermlist-Container-wide").hide();
            $(".mkwsTermlist-Container-narrow").show();