mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
WebUI: revert back to function definitions
And suppress ESLint warnings instead.
Fix up 7bbe8eff51.
Closes #23481.
PR #23490.
This commit is contained in:
@@ -2316,7 +2316,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||
this.updateGlobalCheckbox();
|
||||
},
|
||||
|
||||
_sortNodesByColumn: (nodes, column) => {
|
||||
_sortNodesByColumn: function(nodes, column) { // eslint-disable-line PreferArrowFunctions/prefer-arrow-functions
|
||||
nodes.sort((row1, row2) => {
|
||||
// list folders before files when sorting by name
|
||||
if (column.name === "original") {
|
||||
@@ -2633,7 +2633,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||
this.columns["availability"].updateTd = displayPercentage;
|
||||
},
|
||||
|
||||
_sortNodesByColumn: (nodes, column) => {
|
||||
_sortNodesByColumn: function(nodes, column) { // eslint-disable-line PreferArrowFunctions/prefer-arrow-functions
|
||||
nodes.sort((row1, row2) => {
|
||||
// list folders before files when sorting by name
|
||||
if (column.name === "name") {
|
||||
|
||||
@@ -103,7 +103,7 @@ window.qBittorrent.FileTree ??= (() => {
|
||||
return nodes;
|
||||
},
|
||||
|
||||
_getArrayOfNodes: (node, array) => {
|
||||
_getArrayOfNodes: function(node, array) { // eslint-disable-line PreferArrowFunctions/prefer-arrow-functions
|
||||
array.push(node);
|
||||
node.children.each((child) => {
|
||||
this._getArrayOfNodes(child, array);
|
||||
|
||||
Reference in New Issue
Block a user