fixed debug console on desktop mode
This commit is contained in:
parent
bb7f200547
commit
f7bd510aae
@ -524,9 +524,9 @@ window.chat.chooseAnchor = function(t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.chat.show = function(name) {
|
window.chat.show = function(name) {
|
||||||
window.isSmartphone
|
window.isSmartphone()
|
||||||
? $('#updatestatus').hide()
|
? $('#updatestatus').hide()
|
||||||
: $('#updatestatus').show();
|
: $('#updatestatus').show();
|
||||||
$('#chat, #chatinput').show();
|
$('#chat, #chatinput').show();
|
||||||
$('#map').css('visibility', 'hidden');
|
$('#map').css('visibility', 'hidden');
|
||||||
|
|
||||||
|
@ -49,11 +49,12 @@ window.debug.console = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.debug.console.show = function() {
|
window.debug.console.show = function() {
|
||||||
$('#scrollwrapper, #updatestatus').hide();
|
if (window.isSmartphone()) {
|
||||||
// not displaying the map causes bugs in Leaflet
|
$('#scrollwrapper, #updatestatus').hide();
|
||||||
$('#map').css('visibility', 'hidden');
|
$('#map').css('visibility', 'hidden');
|
||||||
|
}
|
||||||
$('#chat, #chatinput').show();
|
$('#chat, #chatinput').show();
|
||||||
window.debug.console.create();
|
window.debug.console.create();
|
||||||
$('#chatinput mark').css('cssText', 'color: #bbb !important').text('debug:');
|
$('#chatinput mark').css('cssText', 'color: #bbb !important').text('debug:');
|
||||||
$('#chat > div').hide();
|
$('#chat > div').hide();
|
||||||
$('#debugconsole').show();
|
$('#debugconsole').show();
|
||||||
|
@ -165,7 +165,7 @@ window.unixTimeToHHmm = function(time) {
|
|||||||
window.rangeLinkClick = function() {
|
window.rangeLinkClick = function() {
|
||||||
if(window.portalRangeIndicator)
|
if(window.portalRangeIndicator)
|
||||||
window.map.fitBounds(window.portalRangeIndicator.getBounds());
|
window.map.fitBounds(window.portalRangeIndicator.getBounds());
|
||||||
if(window.isSmartphone)
|
if(window.isSmartphone())
|
||||||
window.smartphone.mapButton.click();
|
window.smartphone.mapButton.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user