mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
WebUI: Select next available search tab after closing last active tab with X button
This commit is contained in:
@@ -184,7 +184,10 @@ window.qBittorrent.Search ??= (() => {
|
|||||||
closeTabElem.src = "images/application-exit.svg";
|
closeTabElem.src = "images/application-exit.svg";
|
||||||
closeTabElem.width = "10";
|
closeTabElem.width = "10";
|
||||||
closeTabElem.height = "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.prepend(closeTabElem);
|
||||||
tabElem.appendChild(getStatusIconElement("QBT_TR(Searching...)QBT_TR[CONTEXT=SearchJobWidget]", "images/queued.svg"));
|
tabElem.appendChild(getStatusIconElement("QBT_TR(Searching...)QBT_TR[CONTEXT=SearchJobWidget]", "images/queued.svg"));
|
||||||
|
|||||||
Reference in New Issue
Block a user