]> git.wh0rd.org Git - tt-rss.git/commitdiff
feed errors box in feed editor is collapsed by default
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 29 Nov 2005 09:50:18 +0000 (10:50 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 29 Nov 2005 09:50:18 +0000 (10:50 +0100)
backend.php
functions.js
tt-rss.css

index 5a88f38aca3cd9ec09d51cd81847c62ade4f03ef..e541c85c8ed64b89209afa74a9cdc03c63853137 100644 (file)
                
                        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"] . "): " . 
index c696ae3e8f84e74887aaa8dfda75dbead8101300..694ade06a8eefc0f18c64b0d34b93388e863ff65 100644 (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);
+       } 
+}
+
index 6629f1caa97115827813018d698ea7ae01837306..c801e671dd90a2fe4643672600f6197a69aa3b72 100644 (file)
@@ -765,3 +765,8 @@ div.postHeader td.postDate {
        text-align : right;
        color : gray;
 }
+
+#feedUpdateErrors {
+       display : none;
+}
+