Merge pull request #10970 from Piccirello/webui-search-context-menu

Add context menu to Web UI search table
This commit is contained in:
Mike Tzou 2019-07-29 12:01:18 +08:00 committed by GitHub
commit 45690967a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 66 additions and 27 deletions

View file

@ -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 "";
}