From: Andrew Dolgov Date: Fri, 24 Feb 2006 09:33:09 +0000 (+0100) Subject: duplicate feed actions toolbar on bottom (related to #44) X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=98bea1b16385000db352ff5ab297e9c7c20c21d4;p=tt-rss.git duplicate feed actions toolbar on bottom (related to #44) --- diff --git a/backend.php b/backend.php index 5803344c..15bb7702 100644 --- a/backend.php +++ b/backend.php @@ -1353,8 +1353,8 @@ Could not display feed (query failed). Please check label match syntax or local configuration."; return; } - - if (db_num_rows($result) > 0) { + + function print_headline_subtoolbar($link, $feed_site_url, $feed_title) { print ""; @@ -1387,13 +1387,12 @@ print ""; - } if ($last_error) { print ""; - } + } print ""; print "
Could not update this feed."; @@ -1406,6 +1405,12 @@ print "
"; + } + + if (db_num_rows($result) > 0) { + + print_headline_subtoolbar($link, $feed_site_url, $feed_title); + if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { print ""; @@ -1544,6 +1549,9 @@ print "
"; } + print_headline_subtoolbar($link, "javascript:catchupPage()", "Mark page as read"); + + } else { print "
No articles found.
"; } diff --git a/viewfeed.js b/viewfeed.js index c452d0aa..28b94f16 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -374,6 +374,11 @@ function cdmSelectArticles(mode) { } } +function catchupPage() { + alert("FIXME not yet implemented"); +} + + function init() { document.onkeydown = hotkey_handler; }