mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Merge pull request #21123 from skomerko/webui-use-alternating-row-colors
WebUI: Add ability to toggle alternating row colors in tables
This commit is contained in:
commit
49507ad670
12 changed files with 41 additions and 91 deletions
|
@ -477,7 +477,6 @@ window.qBittorrent.PropFiles ??= (() => {
|
|||
|
||||
torrentFilesTable.populateTable(rootNode);
|
||||
torrentFilesTable.updateTable(false);
|
||||
torrentFilesTable.altRow();
|
||||
|
||||
if (selectedFiles.length > 0)
|
||||
torrentFilesTable.reselectRows(selectedFiles);
|
||||
|
@ -706,12 +705,10 @@ window.qBittorrent.PropFiles ??= (() => {
|
|||
|
||||
const expandNode = function(node) {
|
||||
_collapseNode(node, false, false, false);
|
||||
torrentFilesTable.altRow();
|
||||
};
|
||||
|
||||
const collapseNode = function(node) {
|
||||
_collapseNode(node, true, false, false);
|
||||
torrentFilesTable.altRow();
|
||||
};
|
||||
|
||||
const expandAllNodes = function() {
|
||||
|
@ -721,7 +718,6 @@ window.qBittorrent.PropFiles ??= (() => {
|
|||
_collapseNode(child, false, true, false);
|
||||
});
|
||||
});
|
||||
torrentFilesTable.altRow();
|
||||
};
|
||||
|
||||
const collapseAllNodes = function() {
|
||||
|
@ -731,7 +727,6 @@ window.qBittorrent.PropFiles ??= (() => {
|
|||
_collapseNode(child, true, true, false);
|
||||
});
|
||||
});
|
||||
torrentFilesTable.altRow();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue