diff options
-rw-r--r-- | backend.php | 5 | ||||
-rw-r--r-- | functions.js | 11 | ||||
-rw-r--r-- | tt-rss.css | 5 |
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; +} + |