fix feedlist layout bug (take two) - remove unneeded CRs

This commit is contained in:
Andrew Dolgov 2006-02-24 11:22:59 +01:00
parent 140ff9db5a
commit 937881b5f2
2 changed files with 6 additions and 6 deletions

View File

@ -371,8 +371,8 @@
/* virtual feeds */ /* virtual feeds */
if (get_pref($link, 'ENABLE_FEED_CATS')) { if (get_pref($link, 'ENABLE_FEED_CATS')) {
print "<li class=\"feedCat\">Special</li>\n"; print "<li class=\"feedCat\">Special</li>";
print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">\n"; 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
@ -400,10 +400,10 @@
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>\n"; print "<li class=\"feedCat\">Labels</li>";
print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">\n"; print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">";
} else { } else {
print "<li><hr></li>\n"; print "<li><hr></li>";
} }
} }

View File

@ -165,7 +165,7 @@ function cleanSelectedList(element) {
if (child.id == "feedCatHolder") { if (child.id == "feedCatHolder") {
var fcat = child.lastChild; var fcat = child.lastChild;
for (j = 0; j < fcat.childNodes.length; j++) { for (j = 0; j < fcat.childNodes.length; j++) {
var feed = fcat.childNodes[j]; var feed = fcat.childNodes[j];
feed.className = feed.className.replace("Selected", ""); feed.className = feed.className.replace("Selected", "");
} }
} }