mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
WebUI: Clear properties panel when torrent no longer selected
PR #21654.
This commit is contained in:
committed by
GitHub
parent
e0431e3ffb
commit
c3c91be578
@@ -32,7 +32,8 @@ window.qBittorrent ??= {};
|
||||
window.qBittorrent.PropWebseeds ??= (() => {
|
||||
const exports = () => {
|
||||
return {
|
||||
updateData: updateData
|
||||
updateData: updateData,
|
||||
clear: clear
|
||||
};
|
||||
};
|
||||
|
||||
@@ -51,7 +52,6 @@ window.qBittorrent.PropWebseeds ??= (() => {
|
||||
if (new_hash === "") {
|
||||
torrentWebseedsTable.clear();
|
||||
clearTimeout(loadWebSeedsDataTimer);
|
||||
loadWebSeedsDataTimer = loadWebSeedsData.delay(10000);
|
||||
return;
|
||||
}
|
||||
if (new_hash !== current_hash) {
|
||||
@@ -204,6 +204,10 @@ window.qBittorrent.PropWebseeds ??= (() => {
|
||||
}).send();
|
||||
};
|
||||
|
||||
const clear = function() {
|
||||
torrentWebseedsTable.clear();
|
||||
};
|
||||
|
||||
new ClipboardJS("#CopyWebseedUrl", {
|
||||
text: function(trigger) {
|
||||
return torrentWebseedsTable.selectedRowsIds().join("\n");
|
||||
|
||||
Reference in New Issue
Block a user