]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix display of feed browser (probably closes #22)
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 30 Dec 2005 04:22:07 +0000 (05:22 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 30 Dec 2005 04:22:07 +0000 (05:22 +0100)
backend.php
functions.js
tt-rss.css

index 4213b8667afa6d64c26f400aca6cf1d7cc62f312..210adf716f3980d5940f064f5bc9de576103d9ce 100644 (file)
                                        $feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
                                }
 
-                               $check_box = "<input class='feedBrowseCB' type=\"checkbox\" id=\"FBCHK-" . 
-                                       $details["id"] . "\">";
+                               $check_box = "<input onclick='toggleSelectListRow(this)' class='feedBrowseCB' 
+                                       type=\"checkbox\" id=\"FBCHK-" . $details["id"] . "\">";
 
-                               print "<li id=\"FBROW-".$details["id"]."\">$check_box $feed_icon" . 
-                                       db_unescape_string($details["title"]) . 
+                               $class = ($feedctr % 2) ? "even" : "odd";
+
+                               print "<li class='$class' id=\"FBROW-".$details["id"]."\">$check_box".
+                                       "$feed_icon " . db_unescape_string($details["title"]) . 
                                        "&nbsp;<span class='subscribers'>($subscribers)</span></li>";
 
                                        ++$feedctr;
index b75da2bd207574bbea34a7c06959c57d4185895b..7854b07d6e40c418c9cdedc7cfe4408ae565e8c8 100644 (file)
@@ -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;
index 9b54802633e21b616731efa979a862c1dd2d03d5..e2802119ba2d92e3c8b69f44b5c4a7382f3cd952 100644 (file)
@@ -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 {