mirror of
https://github.com/transmission/transmission
synced 2025-02-02 12:32:54 +00:00
(trunk web) unobtrusified tab switching
This commit is contained in:
parent
c25f8c56f8
commit
178b685eb6
2 changed files with 5 additions and 2 deletions
|
@ -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">
|
||||
|
|
|
@ -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); });
|
||||
|
|
Loading…
Reference in a new issue