mirror of
https://github.com/transmission/transmission.git
synced 2025-12-23 20:08:43 +00:00
(trunk web) unobtrusified tab switching
This commit is contained in:
@@ -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); });
|
||||
|
||||
Reference in New Issue
Block a user