diff --git a/code/chat.js b/code/chat.js index 7f0a2c64..8ce22b2c 100644 --- a/code/chat.js +++ b/code/chat.js @@ -480,7 +480,7 @@ window.chat.chooseAnchor = function(t) { var input = $('#chatinput input'); $('#chatcontrols .active').removeClass('active'); - t.addClass('active'); + $("#chatcontrols a:contains('" + tt + "')").addClass('active'); $('#chat > div').hide(); diff --git a/code/debugging.js b/code/debugging.js index 49091d72..7ddaa5de 100644 --- a/code/debugging.js +++ b/code/debugging.js @@ -58,7 +58,7 @@ window.debug.console.show = function() { $('#chat > div').hide(); $('#debugconsole').show(); $('#chatcontrols .active').removeClass('active'); - $(this).addClass('active'); + $("#chatcontrols a:contains('debug')").addClass('active'); } window.debug.console.create = function() { diff --git a/code/smartphone.js b/code/smartphone.js index c6693c1c..cdbabc4f 100644 --- a/code/smartphone.js +++ b/code/smartphone.js @@ -38,8 +38,8 @@ window.runOnSmartphonesBeforeBoot = function() { $('#chat, #chatinput, #scrollwrapper').hide(); $('#map').css('visibility', 'visible'); $('#updatestatus').show(); - $('.active').removeClass('active'); - $(this).addClass('active'); + $('#chatcontrols a .active').removeClass('active'); + $("#chatcontrols a:contains('map')").addClass('active'); }); window.smartphone.sideButton = $('info').click(function() { @@ -47,7 +47,7 @@ window.runOnSmartphonesBeforeBoot = function() { $('#map').css('visibility', 'hidden'); $('#scrollwrapper').show(); $('.active').removeClass('active'); - $(this).addClass('active'); + $("#chatcontrols a:contains('info')").addClass('active'); }); $('#chatcontrols').append(smartphone.mapButton).append(smartphone.sideButton); @@ -72,7 +72,6 @@ window.runOnSmartphonesAfterBoot = function() { if(!isSmartphone()) return; console.warn('running smartphone post boot stuff'); - //chat.toggle(); smartphone.mapButton.click(); // disable img full view diff --git a/code/window_management.js b/code/window_management.js index 2927aa4f..c210961b 100644 --- a/code/window_management.js +++ b/code/window_management.js @@ -24,7 +24,7 @@ window.show = function(id) { window.smartphone.sideButton.click(); break; default: - window.smartphone.mapButton.Click(); + window.smartphone.mapButton.click(); break; } } diff --git a/mobile/smartphone.css b/mobile/smartphone.css index 28fc34aa..97e70ee6 100644 --- a/mobile/smartphone.css +++ b/mobile/smartphone.css @@ -67,8 +67,15 @@ body { width: 77px; } +#chatcontrols a.active { + border-color: #FFCE00; + border-bottom-width:0px; + font-weight:bold +} - +#chatcontrols a.active + a { + border-left-color: #FFCE00 +} #sidebartoggle { display: none !important; diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java b/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java index a08acf7b..9db2f61c 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java @@ -313,7 +313,7 @@ public class IITC_Mobile extends Activity { return true; case R.id.menu_debug: iitc_view.loadUrl("javascript: window.show('debug')"); - actionBar.setTitle(getString(R.string.menu_debug)); + actionBar.setTitle(getString(R.string.menu_debug)); return true; default: return super.onOptionsItemSelected(item);