mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
WebUI: Select next available search tab after closing last active tab with X button
This commit is contained in:
parent
7e95375cec
commit
8c02bbb4bc
1 changed files with 4 additions and 1 deletions
|
@ -184,7 +184,10 @@ window.qBittorrent.Search ??= (() => {
|
|||
closeTabElem.src = "images/application-exit.svg";
|
||||
closeTabElem.width = "10";
|
||||
closeTabElem.height = "10";
|
||||
closeTabElem.addEventListener("click", function(e) { qBittorrent.Search.closeSearchTab(this); });
|
||||
closeTabElem.addEventListener("click", function(e) {
|
||||
e.stopPropagation();
|
||||
closeSearchTab(this);
|
||||
});
|
||||
|
||||
tabElem.prepend(closeTabElem);
|
||||
tabElem.appendChild(getStatusIconElement("QBT_TR(Searching...)QBT_TR[CONTEXT=SearchJobWidget]", "images/queued.svg"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue