From 1e0ac13be1ef6c3726149104a0d6346298449efb Mon Sep 17 00:00:00 2001 From: tehcneko Date: Thu, 17 Apr 2025 11:17:02 +0100 Subject: [PATCH] apply suggestions --- src/webui/www/private/scripts/dynamicTable.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index e1c6a13bf..d86869512 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -97,7 +97,7 @@ window.qBittorrent.DynamicTable ??= (() => { this.setupVirtualList(); }, - setupVirtualList() { + setupVirtualList: function() { if (!this.useVirtualList) return; this.table.style.position = "relative"; @@ -979,7 +979,7 @@ window.qBittorrent.DynamicTable ??= (() => { return tr; }, - updateRowElement(tr, rowId, top) { + updateRowElement: function(tr, rowId, top) { tr.dataset.rowId = rowId; tr.rowId = rowId; @@ -2414,8 +2414,8 @@ window.qBittorrent.DynamicTable ??= (() => { span = document.createElement("span"); td.append(span); } - span.textContent = node.renamed; span.id = fileNameRenamedId; + span.textContent = node.renamed; }; }, @@ -2804,7 +2804,7 @@ window.qBittorrent.DynamicTable ??= (() => { collapseIcon.addEventListener("click", (e) => { const id = collapseIcon.dataset.id; const node = that.getNode(id); - if (node) { + if (node !== null) { if (that.isCollapsed(node.rowId)) that.expandNode(node.rowId); else