(trunk web) unobtrusified tab switching

This commit is contained in:
Kevin Glowacz 2009-11-10 05:43:14 +00:00
parent c25f8c56f8
commit 178b685eb6
2 changed files with 5 additions and 2 deletions

View File

@ -208,8 +208,8 @@
<form action="" id="prefs_form">
<div id="prefs_tabs">
<ul>
<li onclick="changeTab(this, 'prefs_tab_general');" class="prefs_tab_enabled">General</li>
<li onclick="changeTab(this, 'prefs_tab_speed');" class="prefs_tab_disabled">Speed</li>
<li id="prefs_tab_general_tab" class="prefs_tab_enabled">General</li>
<li id="prefs_tab_speed_tab" class="prefs_tab_disabled">Speed</li>
</ul>
<div id="prefs_tab_general" class="prefs_tab">
<div class="preference download_location">

View File

@ -53,6 +53,9 @@ Transmission.prototype =
$('#upload_confirm_button').bind('click', function(e){ tr.confirmUploadClicked(e); return false;});
$('#upload_cancel_button').bind('click', function(e){ tr.cancelUploadClicked(e); return false; });
$('#turtle_button').bind('click', function(e){ tr.toggleTurtleClicked(e); return false; });
$('#prefs_tab_general_tab').click(function(e){ changeTab(this, 'prefs_tab_general') });
$('#prefs_tab_speed_tab').click(function(e){ changeTab(this, 'prefs_tab_speed') });
if (iPhone) {
$('#inspector_close').bind('click', function(e){ tr.hideInspector(); });
$('#preferences_link').bind('click', function(e){ tr.releaseClutchPreferencesButton(e); });