return;
}
- function print_headline_subtoolbar($link, $feed_site_url, $feed_title) {
+ function print_headline_subtoolbar($link, $feed_site_url, $feed_title,
+ $bottom = false) {
- print "<table class=\"headlinesSubToolbar\"
+ if (!$bottom) {
+ $class = "headlinesSubToolbar";
+ $tid = "headlineActionsTop";
+ } else {
+ $class = "invisible";
+ $tid = "headlineActionsBottom";
+ }
+
+ print "<table class=\"$class\" id=\"$tid\"
width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
print "</table>";
}
- print_headline_subtoolbar($link, "javascript:catchupPage()", "Mark page as read");
+ print_headline_subtoolbar($link,
+ "javascript:catchupPage()", "Mark page as read", true);
} else {
if (arguments.callee.done) return;
arguments.callee.done = true;
document.onkeydown = hotkey_handler;
+
+ var hw = document.getElementById("headlinesList").scrollHeight;
+ var pw = parent.document.getElementById("headlines").scrollHeight;
+
+ if (hw >= pw) {
+ var bt = document.getElementById("headlineActionsBottom");
+ bt.className = "headlinesSubToolbar";
+ }
+
}