mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -06:00
WebUI: Always close one window
Closing all windows is overly broad and never the intention. PR #21804.
This commit is contained in:
committed by
GitHub
parent
0f12d077c8
commit
1cd3c586c1
@@ -17,11 +17,11 @@
|
||||
defaultEventType: "keydown",
|
||||
events: {
|
||||
"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();
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,7 @@
|
||||
urls: $("urls").value.split("\n").map(w => encodeURIComponent(w.trim())).filter(w => (w.length > 0)).join("|")
|
||||
},
|
||||
onComplete: () => {
|
||||
window.parent.qBittorrent.Client.closeWindows();
|
||||
window.parent.qBittorrent.Client.closeFrameWindow(window);
|
||||
}
|
||||
}).send();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user