diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index a7617d702..20333268b 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -3272,18 +3272,14 @@ window.qBittorrent.DynamicTable ??= (() => { } updateRow(tr, fullUpdate) { const row = this.rows.get(tr.rowId); - const data = row[fullUpdate ? "full_data" : "data"]; - const tds = this.getRowCells(tr); - for (let i = 0; i < this.columns.length; ++i) { - if (Object.hasOwn(data, this.columns[i].dataProperties[0])) - this.columns[i].updateTd(tds[i], row); - } - row["data"] = {}; + tds[0].style.overflow = "visible"; const indentation = row.full_data.indentation; tds[0].style.paddingLeft = `${indentation * 32 + 4}px`; tds[1].style.paddingLeft = `${indentation * 32 + 4}px`; + + return super.updateRow(tr, fullUpdate); } updateIcons() { // state_icon @@ -3408,15 +3404,9 @@ window.qBittorrent.DynamicTable ??= (() => { } updateRow(tr, fullUpdate) { const row = this.rows.get(tr.rowId); - const data = row[fullUpdate ? "full_data" : "data"]; tr.classList.toggle("unreadArticle", !row.full_data.isRead); - const tds = this.getRowCells(tr); - for (let i = 0; i < this.columns.length; ++i) { - if (Object.hasOwn(data, this.columns[i].dataProperties[0])) - this.columns[i].updateTd(tds[i], row); - } - row["data"] = {}; + return super.updateRow(tr, fullUpdate); } newColumn(name, style, caption, defaultWidth, defaultVisible) { const column = {}; @@ -3673,23 +3663,10 @@ window.qBittorrent.DynamicTable ??= (() => { selectRow() {} updateRow(tr, fullUpdate) { const row = this.rows.get(tr.rowId); - const data = row[fullUpdate ? "full_data" : "data"]; + tr.classList.toggle("articleTableFeed", row.full_data.isFeed); + tr.classList.toggle("articleTableArticle", !row.full_data.isFeed); - if (row.full_data.isFeed) { - tr.classList.add("articleTableFeed"); - tr.classList.remove("articleTableArticle"); - } - else { - tr.classList.remove("articleTableFeed"); - tr.classList.add("articleTableArticle"); - } - - const tds = this.getRowCells(tr); - for (let i = 0; i < this.columns.length; ++i) { - if (Object.hasOwn(data, this.columns[i].dataProperties[0])) - this.columns[i].updateTd(tds[i], row); - } - row["data"] = {}; + return super.updateRow(tr, fullUpdate); } }