summaryrefslogtreecommitdiff
path: root/js/Feeds.js
diff options
context:
space:
mode:
authorGreg <supahgreg@users.noreply.github.com>2025-10-14 19:13:51 -0500
committerGitHub <noreply@github.com>2025-10-14 19:13:51 -0500
commit703d310e400f1f4162d4e38afa3f5bf5169c5377 (patch)
treeb4ab637f1b25aae25cd10604468d509bbe26246e /js/Feeds.js
parent73f9d7bd6c8f222145c29c91eeb43ba7c7677496 (diff)
parent6223abef082bc7d2383ecbd4cf42fd280073f5d1 (diff)
Merge pull request #51 from tt-rss/js-proto-extensions-and-misc-cleanup
Remove various JS prototype extensions and alias functions
Diffstat (limited to 'js/Feeds.js')
-rw-r--r--js/Feeds.js26
1 files changed, 11 insertions, 15 deletions
diff --git a/js/Feeds.js b/js/Feeds.js
index 790b64dd4..af7a6cc54 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -143,8 +143,8 @@ const Feeds = {
},
onViewModeChanged: function() {
// TODO: is this still needed?
- App.find("body").setAttribute("view-mode",
- dijit.byId("toolbar-main").getValues().view_mode);
+ document.body.setAttribute('view-mode',
+ dijit.byId('toolbar-main').getValues().view_mode);
return Feeds.reloadCurrent('');
},
@@ -227,7 +227,7 @@ const Feeds = {
dojo.disconnect(tmph);
});
- App.byId("feeds-holder").appendChild(tree.domNode);
+ document.getElementById("feeds-holder").appendChild(tree.domNode);
const tmph2 = dojo.connect(tree, 'onLoad', function () {
dojo.disconnect(tmph2);
@@ -247,13 +247,13 @@ const Feeds = {
}
},
onHide: function() {
- App.byId("feeds-holder_splitter").hide();
+ document.getElementById("feeds-holder_splitter").hide();
dijit.byId("main").resize();
Headlines.updateCurrentUnread();
},
onShow: function() {
- App.byId("feeds-holder_splitter").show();
+ document.getElementById("feeds-holder_splitter").show();
dijit.byId("main").resize();
Headlines.updateCurrentUnread();
@@ -261,7 +261,7 @@ const Feeds = {
init: function() {
console.log("in feedlist init");
- this._feeds_holder_observer.observe(App.byId("feeds-holder"));
+ this._feeds_holder_observer.observe(document.getElementById("feeds-holder"));
App.setLoadingProgress(50);
@@ -350,7 +350,7 @@ const Feeds = {
this._active_feed_id = id;
this._active_feed_is_cat = is_cat;
- const container = App.byId("headlines-frame");
+ const container = document.getElementById("headlines-frame");
// TODO @deprecated: these two should be removed (replaced with data- attributes below)
container.setAttribute("feed-id", id);
@@ -383,8 +383,8 @@ const Feeds = {
if (tree)
return tree.hideRead(hide, App.getInitParam("hide_read_shows_special"));*/
- App.findAll("body")[0].setAttribute("hide-read-feeds", !!hide);
- App.findAll("body")[0].setAttribute("hide-read-shows-special", !!App.getInitParam("hide_read_shows_special"));
+ document.body.setAttribute('hide-read-feeds', !!hide);
+ document.body.setAttribute('hide-read-shows-special', !!App.getInitParam('hide_read_shows_special'));
},
open: function(params) {
const feed = params.feed;
@@ -531,12 +531,8 @@ const Feeds = {
const str = __("Mark all articles in %s as read?").replace("%s", title);
if (App.getInitParam("confirm_feed_catchup") !== 1 || confirm(str)) {
-
- const rows = App.findAll("#headlines-frame > div[id*=RROW][class*=Unread][data-orig-feed-id='" + id + "']");
-
- rows.forEach((row) => {
- row.removeClassName("Unread");
- })
+ document.querySelectorAll("#headlines-frame > div[id*=RROW][class*=Unread][data-orig-feed-id='" + id + "']")
+ .forEach(row => row.classList.remove('Unread'));
}
},
getUnread: function(feed, is_cat) {