diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index 6d44d36da..4e50f3115 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -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") { diff --git a/src/webui/www/private/scripts/file-tree.js b/src/webui/www/private/scripts/file-tree.js index 06fae5394..9260d2c4d 100644 --- a/src/webui/www/private/scripts/file-tree.js +++ b/src/webui/www/private/scripts/file-tree.js @@ -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);