summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-29 10:50:18 +0100
committerAndrew Dolgov <[email protected]>2005-11-29 10:50:18 +0100
commit36aab70f080d7ab50a754b522e62a2f03ccc167a (patch)
treefc7fb13afd13df996cba879c2d7274031576e935
parenta88c1f36443c5d761d4224df5b887d6b558431fe (diff)
feed errors box in feed editor is collapsed by default
-rw-r--r--backend.php5
-rw-r--r--functions.js11
-rw-r--r--tt-rss.css5
3 files changed, 19 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index 5a88f38ac..e541c85c8 100644
--- a/backend.php
+++ b/backend.php
@@ -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"] . "): " .
diff --git a/functions.js b/functions.js
index c696ae3e8..694ade06a 100644
--- a/functions.js
+++ b/functions.js
@@ -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);
+ }
+}
+
diff --git a/tt-rss.css b/tt-rss.css
index 6629f1caa..c801e671d 100644
--- a/tt-rss.css
+++ b/tt-rss.css
@@ -765,3 +765,8 @@ div.postHeader td.postDate {
text-align : right;
color : gray;
}
+
+#feedUpdateErrors {
+ display : none;
+}
+