$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"]) .
" <span class='subscribers'>($subscribers)</span></li>";
++$feedctr;
}
}
+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;