mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 17:12:31 -06:00
WebUI: unify curly bracket usage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user