mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 08:32:31 -06:00
WebUI: Replace getElements & getChildren
This PR further reduces Mootools usage. PR #22220.
This commit is contained in:
@@ -417,13 +417,18 @@
|
||||
});
|
||||
});
|
||||
|
||||
$("rssDetailsView").getChildren().each(c => c.destroy());
|
||||
clearDetails();
|
||||
rssArticleTable.updateTable(false);
|
||||
};
|
||||
|
||||
const clearDetails = () => {
|
||||
[...document.getElementById("rssDetailsView").children].forEach((el) => { el.destroy(); });
|
||||
};
|
||||
|
||||
const showDetails = (feedUid, articleID) => {
|
||||
markArticleAsRead(pathByFeedId.get(feedUid), articleID);
|
||||
$("rssDetailsView").getChildren().each(c => c.destroy());
|
||||
clearDetails();
|
||||
|
||||
const article = feedData[feedUid].filter((article) => article.id === articleID)[0];
|
||||
if (article) {
|
||||
$("rssDetailsView").append((() => {
|
||||
|
||||
Reference in New Issue
Block a user