fix feedlist layout bug

This commit is contained in:
Andrew Dolgov 2006-02-24 11:20:58 +01:00
parent 97dcd654bb
commit 140ff9db5a
1 changed files with 9 additions and 9 deletions

View File

@ -362,7 +362,7 @@
window.onload = init; window.onload = init;
</script>"; </script>";
print "<ul class=\"feedList\" id=\"feedList\">"; print "<ul class=\"feedList\" id=\"feedList\">\n";
$owner_uid = $_SESSION["uid"]; $owner_uid = $_SESSION["uid"];
@ -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>"; print "<li class=\"feedCat\">Special</li>\n";
print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">"; print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">\n";
} }
$result = db_query($link, "SELECT count(id) as num_starred $result = db_query($link, "SELECT count(id) as num_starred
@ -390,7 +390,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 "</li></ul>"; print "</ul>\n";
} }
if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) {
@ -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>"; print "<li class=\"feedCat\">Labels</li>\n";
print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">"; print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">\n";
} else { } else {
print "<li><hr></li>"; print "<li><hr></li>\n";
} }
} }
@ -434,7 +434,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></ul>"; print "</ul>";
} }
} }
@ -528,7 +528,7 @@
if ($category != $tmp_category && get_pref($link, 'ENABLE_FEED_CATS')) { if ($category != $tmp_category && get_pref($link, 'ENABLE_FEED_CATS')) {
if ($category) { if ($category) {
print "</li></ul></li>"; print "</ul></li>";
} }
$category = $tmp_category; $category = $tmp_category;