WebUI: unify curly bracket usage

This commit is contained in:
Chocobo1
2024-06-07 02:22:57 +08:00
parent 41d8f473b7
commit bf4e0df386
32 changed files with 177 additions and 252 deletions

View File

@@ -158,9 +158,8 @@
<script>
"use strict";
if (window.qBittorrent === undefined) {
if (window.qBittorrent === undefined)
window.qBittorrent = {};
}
const serverSyncRssDataInterval = 1500;
@@ -369,12 +368,13 @@
let visibleArticles = [];
for (const feedEntry in feedData) {
if (childFeeds.has(feedEntry))
if (childFeeds.has(feedEntry)) {
visibleArticles.append(feedData[feedEntry]
.map((a) => {
a.feedUid = feedEntry;
return a;
}));
}
}
//filter read articles if "Unread" feed is selected
if (path === "")
@@ -712,9 +712,10 @@
const markItemAsRead = (path) => {
// feed data mark as read
for (const feedID in feedData)
for (const feedID in feedData) {
if (pathByFeedId.get(feedID).slice(0, path.length) === path)
feedData[feedID].each((el) => el.isRead = true);
}
// mark rows as read
rssArticleTable.rows.each((el) => el.full_data.isRead = true);