mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 17:35:00 -06:00
WebUI: prefer arrow function in callbacks
This commit is contained in:
@@ -217,7 +217,7 @@
|
||||
menu: "logTableMenu",
|
||||
actions: {
|
||||
Clear: () => {
|
||||
tableInfo[currentSelectedTab].instance.selectedRowsIds().forEach(function(rowId) {
|
||||
tableInfo[currentSelectedTab].instance.selectedRowsIds().forEach((rowId) => {
|
||||
tableInfo[currentSelectedTab].instance.removeRow(rowId);
|
||||
});
|
||||
|
||||
@@ -420,7 +420,7 @@
|
||||
new ClipboardJS(".copyLogDataToClipboard", {
|
||||
text: function() {
|
||||
const msg = [];
|
||||
tableInfo[currentSelectedTab].instance.selectedRowsIds().each(function(rowId) {
|
||||
tableInfo[currentSelectedTab].instance.selectedRowsIds().each((rowId) => {
|
||||
msg.push(tableInfo[currentSelectedTab].instance.rows.get(rowId).full_data[(currentSelectedTab === "main") ? "message" : "ip"]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user