mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 15:42:32 -06:00
WebUI: use native function to convert to numbers
Also replace `parseInt()` since `Number()` behavior is more intuitive. PR #21831.
This commit is contained in:
@@ -595,7 +595,7 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
||||
rulesList[rule].mustNotContain = $("mustNotContainText").value;
|
||||
rulesList[rule].episodeFilter = $("episodeFilterText").value;
|
||||
rulesList[rule].smartFilter = $("useSmartFilter").checked;
|
||||
rulesList[rule].ignoreDays = parseInt($("ignoreDaysValue").value, 10);
|
||||
rulesList[rule].ignoreDays = Number($("ignoreDaysValue").value);
|
||||
rulesList[rule].affectedFeeds = [...rssDownloaderFeedSelectionTable.getRowValues()]
|
||||
.filter((row) => row.full_data.checked)
|
||||
.map((row) => row.full_data.url);
|
||||
|
||||
Reference in New Issue
Block a user