diff --git a/src/webui/www/private/properties_content.html b/src/webui/www/private/properties_content.html index 9d1ac5a32..b01f2737e 100644 --- a/src/webui/www/private/properties_content.html +++ b/src/webui/www/private/properties_content.html @@ -1,4 +1,4 @@ -
+
QBT_TR(Transfer)QBT_TR[CONTEXT=PropertiesWidget] @@ -79,7 +79,7 @@ -
@@ -99,7 +99,7 @@ -
@@ -119,7 +119,7 @@ -
@@ -132,7 +132,7 @@ -
diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index c98c4ac55..17b6ec3fc 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -721,51 +721,36 @@ window.addEvent('load', function() { }; $('PropGeneralLink').addEvent('click', function(e) { + $$('.propertiesTabContent').addClass('invisible'); $('prop_general').removeClass("invisible"); - $('prop_trackers').addClass("invisible"); - $('prop_webseeds').addClass("invisible"); - $('prop_files').addClass("invisible"); - $('prop_peers').addClass("invisible"); updatePropertiesPanel(); localStorage.setItem('selected_tab', this.id); }); $('PropTrackersLink').addEvent('click', function(e) { + $$('.propertiesTabContent').addClass('invisible'); $('prop_trackers').removeClass("invisible"); - $('prop_general').addClass("invisible"); - $('prop_webseeds').addClass("invisible"); - $('prop_files').addClass("invisible"); - $('prop_peers').addClass("invisible"); updatePropertiesPanel(); localStorage.setItem('selected_tab', this.id); }); $('PropPeersLink').addEvent('click', function(e) { + $$('.propertiesTabContent').addClass('invisible'); $('prop_peers').removeClass("invisible"); - $('prop_trackers').addClass("invisible"); - $('prop_general').addClass("invisible"); - $('prop_webseeds').addClass("invisible"); - $('prop_files').addClass("invisible"); updatePropertiesPanel(); localStorage.setItem('selected_tab', this.id); }); $('PropWebSeedsLink').addEvent('click', function(e) { + $$('.propertiesTabContent').addClass('invisible'); $('prop_webseeds').removeClass("invisible"); - $('prop_general').addClass("invisible"); - $('prop_trackers').addClass("invisible"); - $('prop_files').addClass("invisible"); - $('prop_peers').addClass("invisible"); updatePropertiesPanel(); localStorage.setItem('selected_tab', this.id); }); $('PropFilesLink').addEvent('click', function(e) { + $$('.propertiesTabContent').addClass('invisible'); $('prop_files').removeClass("invisible"); - $('prop_general').addClass("invisible"); - $('prop_trackers').addClass("invisible"); - $('prop_webseeds').addClass("invisible"); - $('prop_peers').addClass("invisible"); updatePropertiesPanel(); localStorage.setItem('selected_tab', this.id); });