WebUI: Always close one window

Closing all windows is overly broad and never the intention.

PR #21804.
This commit is contained in:
Thomas Piccirello
2024-11-16 04:12:35 -03:00
committed by GitHub
parent 0f12d077c8
commit 1cd3c586c1
24 changed files with 70 additions and 70 deletions

View File

@@ -24,11 +24,11 @@
event.preventDefault();
},
"Escape": function(event) {
window.parent.qBittorrent.Client.closeWindows();
window.parent.qBittorrent.Client.closeFrameWindow(window);
event.preventDefault();
},
"Esc": function(event) {
window.parent.qBittorrent.Client.closeWindows();
window.parent.qBittorrent.Client.closeFrameWindow(window);
event.preventDefault();
}
}
@@ -115,7 +115,7 @@
inactiveSeedingTimeLimit: inactiveSeedingTimeLimitValue
},
onComplete: () => {
window.parent.qBittorrent.Client.closeWindows();
window.parent.qBittorrent.Client.closeFrameWindow(window);
}
}).send();
});