diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index c093c9a0a..3e972a43c 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -44,6 +44,7 @@ let alternativeSpeedLimits = false; let queueing_enabled = true; let serverSyncMainDataInterval = 1500; let customSyncMainDataInterval = null; +let searchTabInitialized = false; let clipboardEvent; @@ -254,7 +255,7 @@ window.addEvent('load', function() { $('speedInBrowserTitleBarLink').firstChild.style.opacity = '0'; // After showing/hiding the toolbar + status bar - let showSearchEngine = localStorage.getItem('show_search_engine') === "true"; + let showSearchEngine = localStorage.getItem('show_search_engine') !== "false"; if (!showSearchEngine) { // uncheck menu option $('showSearchEngineLink').firstChild.style.opacity = '0'; @@ -788,6 +789,11 @@ window.addEvent('load', function() { }; const showSearchTab = function() { + if (!searchTabInitialized) { + initSearchTab(); + searchTabInitialized = true; + } + $("searchTabColumn").removeClass("invisible"); customSyncMainDataInterval = 30000; hideTransfersTab(); @@ -999,8 +1005,6 @@ function setupCopyEventHandler() { return copyMagnetLinkFN(); case "copyHash": return copyHashFN(); - case "copyDescriptionPageUrl": - return copySearchTorrentUrl(); default: return ""; } diff --git a/src/webui/www/private/search.html b/src/webui/www/private/search.html index 2ff92d075..d1c986cd0 100644 --- a/src/webui/www/private/search.html +++ b/src/webui/www/private/search.html @@ -48,10 +48,6 @@ width: 4em; } - #downloadSearchTorrent, #openSearchTorrentDescription, #copyDescriptionPageUrl { - line-height: 1.5em; - } - #manageSearchPlugins { line-height: 1.5em; float: right; @@ -143,13 +139,23 @@
- - -
+ +