From b92e620990d9f76fd0f7573bac38bd54b2e7abd5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Dec 2005 05:22:07 +0100 Subject: [PATCH] fix display of feed browser (probably closes #22) --- backend.php | 10 ++++++---- functions.js | 14 ++++++++++++++ tt-rss.css | 8 +++++++- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/backend.php b/backend.php index 4213b8667..210adf716 100644 --- a/backend.php +++ b/backend.php @@ -1565,11 +1565,13 @@ $feed_icon = ""; } - $check_box = ""; + $check_box = ""; - print "
  • $check_box $feed_icon" . - db_unescape_string($details["title"]) . + $class = ($feedctr % 2) ? "even" : "odd"; + + print "
  • $check_box". + "$feed_icon " . db_unescape_string($details["title"]) . " ($subscribers)
  • "; ++$feedctr; diff --git a/functions.js b/functions.js index b75da2bd2..7854b07d6 100644 --- a/functions.js +++ b/functions.js @@ -625,6 +625,20 @@ function toggleSelectRowById(sender, id) { } } +function toggleSelectListRow(sender) { + var parent_row = sender.parentNode; + + if (sender.checked) { + if (!parent_row.className.match("Selected")) { + parent_row.className = parent_row.className + "Selected"; + } + } else { + if (parent_row.className.match("Selected")) { + parent_row.className = parent_row.className.replace("Selected", ""); + } + } +} + function toggleSelectRow(sender) { var parent_row = sender.parentNode.parentNode; diff --git a/tt-rss.css b/tt-rss.css index 9b5480263..e2802119b 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -927,7 +927,13 @@ ul.browseFeedList { height : 300px; overflow : auto; list-style-type : none; - margin-bottom : 5px; + margin : 0px 0px 5px 0px; + padding : 0px; +} + +ul.browseFeedList li { + margin : 0px; + padding : 0px; } span.subscribers {