diff --git a/code/chat.js b/code/chat.js index ee42976d..2f029556 100644 --- a/code/chat.js +++ b/code/chat.js @@ -524,9 +524,9 @@ window.chat.chooseAnchor = function(t) { } window.chat.show = function(name) { - window.isSmartphone - ? $('#updatestatus').hide() - : $('#updatestatus').show(); + window.isSmartphone() + ? $('#updatestatus').hide() + : $('#updatestatus').show(); $('#chat, #chatinput').show(); $('#map').css('visibility', 'hidden'); diff --git a/code/debugging.js b/code/debugging.js index e1d92d56..f688e292 100644 --- a/code/debugging.js +++ b/code/debugging.js @@ -49,11 +49,12 @@ window.debug.console = function() { } window.debug.console.show = function() { - $('#scrollwrapper, #updatestatus').hide(); - // not displaying the map causes bugs in Leaflet - $('#map').css('visibility', 'hidden'); + if (window.isSmartphone()) { + $('#scrollwrapper, #updatestatus').hide(); + $('#map').css('visibility', 'hidden'); + } $('#chat, #chatinput').show(); - window.debug.console.create(); + window.debug.console.create(); $('#chatinput mark').css('cssText', 'color: #bbb !important').text('debug:'); $('#chat > div').hide(); $('#debugconsole').show(); diff --git a/code/utils_misc.js b/code/utils_misc.js index 66244047..91147c1b 100644 --- a/code/utils_misc.js +++ b/code/utils_misc.js @@ -165,7 +165,7 @@ window.unixTimeToHHmm = function(time) { window.rangeLinkClick = function() { if(window.portalRangeIndicator) window.map.fitBounds(window.portalRangeIndicator.getBounds()); - if(window.isSmartphone) + if(window.isSmartphone()) window.smartphone.mapButton.click(); }