Added debug menu option and started tidying up 'window' handling

This commit is contained in:
Jon Benson
2013-05-07 14:09:30 +10:00
parent d97b78fafb
commit 0108d1b49c
11 changed files with 62 additions and 30 deletions

View File

@ -522,10 +522,11 @@ window.chat.chooseAnchor = function(t) {
chat.needMoreMessages();
}
window.chat.choose = function(name) {
$('#chat, #chatinput, #updatestatus').show();
window.chat.show = function(name) {
if (!window.isSmartphone) $('#updatestatus').show();
$('#chat, #chatinput').show();
$('#map').css('visibility', 'hidden');
var t = $('<a>'+name+'</a>');
window.chat.chooseAnchor(t);
}