]> granicus.if.org Git - transmission/commitdiff
(trunk web) unobtrusified tab switching
authorKevin Glowacz <kevin@glowacz.info>
Tue, 10 Nov 2009 05:43:14 +0000 (05:43 +0000)
committerKevin Glowacz <kevin@glowacz.info>
Tue, 10 Nov 2009 05:43:14 +0000 (05:43 +0000)
web/index.html
web/javascript/transmission.js

index ea92215292caa07b0bdab5783ca3cc21afc2b9d8..2a234875f9bc3b0360badcab01e379dae2d858d0 100755 (executable)
                                <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">
index f61ec491a9aebcfe8008e3e0ab69fd7d7be61a2f..74c4f80e4e8c2fa0e9fca791f6ef3df73e10d782 100644 (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); });