got rid of redundant code

This commit is contained in:
Philipp Schaefer
2013-10-02 23:40:51 +02:00
parent 7fd3cb7fd6
commit 72620ed668
5 changed files with 3 additions and 11 deletions

View File

@ -35,7 +35,6 @@ window.runOnSmartphonesBeforeBoot = function() {
}
window.smartphone.mapButton = $('<a>map</a>').click(function() {
$('#chat, #chatinput, #scrollwrapper').hide();
$('#map').css('visibility', 'visible');
$('#updatestatus').show();
$('#chatcontrols a .active').removeClass('active');
@ -43,8 +42,6 @@ window.runOnSmartphonesBeforeBoot = function() {
});
window.smartphone.sideButton = $('<a>info</a>').click(function() {
$('#chat, #chatinput, #updatestatus').hide();
$('#map').css('visibility', 'hidden');
$('#scrollwrapper').show();
$('.active').removeClass('active');
$("#chatcontrols a:contains('info')").addClass('active');
@ -112,7 +109,7 @@ window.runOnSmartphonesAfterBoot = function() {
if(!isSmartphone()) return;
console.warn('running smartphone post boot stuff');
smartphone.mapButton.click();
window.show('map');
// add a div/hook for updating mobile info
$('#updatestatus').prepend('<div id="mobileinfo" onclick="show(\'info\')"></div>');