mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 03:25:56 +00:00
toggle hide/display only unread feeds, All feeds: button ops changed into selector
This commit is contained in:
21
functions.js
21
functions.js
@@ -396,3 +396,24 @@ function popupHelp(tid) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function hideOrShowFeeds(doc, hide) {
|
||||
|
||||
var css_rules = doc.styleSheets[0].cssRules;
|
||||
|
||||
for (i = 0; i < css_rules.length; i++) {
|
||||
var rule = css_rules[i];
|
||||
|
||||
if (rule.selectorText == "ul.feedList li.feed") {
|
||||
if (!hide) {
|
||||
rule.style.display = "block";
|
||||
} else {
|
||||
rule.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user