fixed debug console on desktop mode

This commit is contained in:
Philipp Schaefer 2013-05-29 11:21:13 +02:00
parent bb7f200547
commit f7bd510aae
3 changed files with 9 additions and 8 deletions

View File

@ -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');

View File

@ -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();

View File

@ -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();
}