From 98bea1b16385000db352ff5ab297e9c7c20c21d4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Feb 2006 10:33:09 +0100 Subject: [PATCH] duplicate feed actions toolbar on bottom (related to #44) --- backend.php | 16 ++++++++++++---- viewfeed.js | 5 +++++ 2 files changed, 17 insertions(+), 4 deletions(-) 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; } -- 2.39.2