feed errors box in feed editor is collapsed by default

This commit is contained in:
Andrew Dolgov 2005-11-29 10:50:18 +01:00
parent a88c1f3644
commit 36aab70f08
3 changed files with 19 additions and 2 deletions

View File

@ -1379,9 +1379,10 @@
print "<div class=\"warning\">";
print "<b>Feeds with update errors:</b>";
print "<a href=\"javascript:showBlockElement('feedUpdateErrors')\">
<b>Feeds with update errors</b> (click to expand)</a>";
print "<ul class=\"nomarks\">";
print "<ul id=\"feedUpdateErrors\" class=\"nomarks\">";
while ($line = db_fetch_assoc($result)) {
print "<li>" . $line["title"] . " (" . $line["feed_url"] . "): " .

View File

@ -672,3 +672,14 @@ function getRelativeFeedId(list, id, direction) {
}
}
}
function showBlockElement(id) {
var elem = document.getElementById(id);
if (elem) {
elem.style.display = "block";
} else {
alert("[showBlockElement] can't find element with id " + id);
}
}

View File

@ -765,3 +765,8 @@ div.postHeader td.postDate {
text-align : right;
color : gray;
}
#feedUpdateErrors {
display : none;
}