mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 13:35:59 +00:00
feedlist display fixes for category mode
This commit is contained in:
10
backend.php
10
backend.php
@@ -174,7 +174,7 @@
|
|||||||
|
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
print "<li class=\"feedCat\">Special</li>";
|
print "<li class=\"feedCat\">Special</li>";
|
||||||
print "<ul class=\"feedCatList\">";
|
print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = db_query($link, "SELECT count(id) as num_starred
|
$result = db_query($link, "SELECT count(id) as num_starred
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
"images/mark_set.png", $link);
|
"images/mark_set.png", $link);
|
||||||
|
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
print "</ul>";
|
print "</li></ul>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, 'ENABLE_LABELS')) {
|
if (get_pref($link, 'ENABLE_LABELS')) {
|
||||||
@@ -203,7 +203,7 @@
|
|||||||
if (db_num_rows($result) > 0) {
|
if (db_num_rows($result) > 0) {
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
print "<li class=\"feedCat\">Labels</li>";
|
print "<li class=\"feedCat\">Labels</li>";
|
||||||
print "<ul class=\"feedCatList\">";
|
print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">";
|
||||||
} else {
|
} else {
|
||||||
print "<li><hr></li>";
|
print "<li><hr></li>";
|
||||||
}
|
}
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
|
|
||||||
if (db_num_rows($result) > 0) {
|
if (db_num_rows($result) > 0) {
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
print "</ul>";
|
print "</li></ul>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@
|
|||||||
$category = $tmp_category;
|
$category = $tmp_category;
|
||||||
|
|
||||||
print "<li class=\"feedCat\">$category</li>";
|
print "<li class=\"feedCat\">$category</li>";
|
||||||
print "<li><ul class=\"feedCatList\">";
|
print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
printFeedEntry($feed_id, $class, $feed, $unread,
|
printFeedEntry($feed_id, $class, $feed, $unread,
|
||||||
|
|||||||
18
functions.js
18
functions.js
@@ -126,12 +126,26 @@ function hotkey_handler(e) {
|
|||||||
function cleanSelectedList(element) {
|
function cleanSelectedList(element) {
|
||||||
var content = document.getElementById(element);
|
var content = document.getElementById(element);
|
||||||
|
|
||||||
|
if (!document.getElementById("feedCatHolder")) {
|
||||||
for (i = 0; i < content.childNodes.length; i++) {
|
for (i = 0; i < content.childNodes.length; i++) {
|
||||||
content.childNodes[i].className =
|
var child = content.childNodes[i];
|
||||||
content.childNodes[i].className.replace("Selected", "");
|
child.className = child.className.replace("Selected", "");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (i = 0; i < content.childNodes.length; i++) {
|
||||||
|
var child = content.childNodes[i];
|
||||||
|
|
||||||
|
if (child.id == "feedCatHolder") {
|
||||||
|
var fcat = child.firstChild;
|
||||||
|
for (j = 0; j < fcat.childNodes.length; j++) {
|
||||||
|
var feed = fcat.childNodes[j];
|
||||||
|
feed.className = feed.className.replace("Selected", "");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function cleanSelected(element) {
|
function cleanSelected(element) {
|
||||||
|
|||||||
Reference in New Issue
Block a user