mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
@@ -3294,7 +3294,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||||||
this.newColumn("checked", "", "", 30, true);
|
this.newColumn("checked", "", "", 30, true);
|
||||||
this.newColumn("name", "", "", -1, true);
|
this.newColumn("name", "", "", -1, true);
|
||||||
|
|
||||||
this.columns["checked"].updateTd = function(td, row) {
|
this.columns["checked"].updateTd = (td, row) => {
|
||||||
if (document.getElementById(`cbRssDlRule${row.rowId}`) === null) {
|
if (document.getElementById(`cbRssDlRule${row.rowId}`) === null) {
|
||||||
const checkbox = document.createElement("input");
|
const checkbox = document.createElement("input");
|
||||||
checkbox.type = "checkbox";
|
checkbox.type = "checkbox";
|
||||||
@@ -3391,7 +3391,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||||||
this.newColumn("checked", "", "", 30, true);
|
this.newColumn("checked", "", "", 30, true);
|
||||||
this.newColumn("name", "", "", -1, true);
|
this.newColumn("name", "", "", -1, true);
|
||||||
|
|
||||||
this.columns["checked"].updateTd = function(td, row) {
|
this.columns["checked"].updateTd = (td, row) => {
|
||||||
if (document.getElementById(`cbRssDlFeed${row.rowId}`) === null) {
|
if (document.getElementById(`cbRssDlFeed${row.rowId}`) === null) {
|
||||||
const checkbox = document.createElement("input");
|
const checkbox = document.createElement("input");
|
||||||
checkbox.type = "checkbox";
|
checkbox.type = "checkbox";
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ window.qBittorrent.pathAutofill ??= (() => {
|
|||||||
.catch(error => {});
|
.catch(error => {});
|
||||||
};
|
};
|
||||||
|
|
||||||
function attachPathAutofill() {
|
const attachPathAutofill = () => {
|
||||||
const directoryInputs = document.querySelectorAll(".pathDirectory:not(.pathAutoFillInitialized)");
|
const directoryInputs = document.querySelectorAll(".pathDirectory:not(.pathAutoFillInitialized)");
|
||||||
for (const input of directoryInputs) {
|
for (const input of directoryInputs) {
|
||||||
input.addEventListener("input", function(event) { showPathSuggestions(this, "dirs"); });
|
input.addEventListener("input", function(event) { showPathSuggestions(this, "dirs"); });
|
||||||
@@ -85,7 +85,7 @@ window.qBittorrent.pathAutofill ??= (() => {
|
|||||||
input.addEventListener("input", function(event) { showPathSuggestions(this, "all"); });
|
input.addEventListener("input", function(event) { showPathSuggestions(this, "all"); });
|
||||||
input.classList.add("pathAutoFillInitialized");
|
input.classList.add("pathAutoFillInitialized");
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -832,7 +832,7 @@ window.qBittorrent.Search ??= (() => {
|
|||||||
document.getElementById("numSearchResultsVisible").textContent = searchResultsTable.getFilteredAndSortedRows().length;
|
document.getElementById("numSearchResultsVisible").textContent = searchResultsTable.getFilteredAndSortedRows().length;
|
||||||
};
|
};
|
||||||
|
|
||||||
const loadSearchResultsData = function(searchId) {
|
const loadSearchResultsData = (searchId) => {
|
||||||
const state = searchState.get(searchId);
|
const state = searchState.get(searchId);
|
||||||
const url = new URL("api/v2/search/results", window.location);
|
const url = new URL("api/v2/search/results", window.location);
|
||||||
url.search = new URLSearchParams({
|
url.search = new URLSearchParams({
|
||||||
@@ -923,7 +923,7 @@ window.qBittorrent.Search ??= (() => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateSearchResultsData = function(searchId) {
|
const updateSearchResultsData = (searchId) => {
|
||||||
const state = searchState.get(searchId);
|
const state = searchState.get(searchId);
|
||||||
clearTimeout(state.loadResultsTimer);
|
clearTimeout(state.loadResultsTimer);
|
||||||
state.loadResultsTimer = loadSearchResultsData.delay(500, this, searchId);
|
state.loadResultsTimer = loadSearchResultsData.delay(500, this, searchId);
|
||||||
|
|||||||
Reference in New Issue
Block a user