From a219fec54d09f81da2686a8817dd67ae98872661 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 9 Aug 2007 09:36:56 +0100 Subject: [PATCH] CDM and infinite scrolling tweaks --- functions.js | 15 +++++++++++++++ tt-rss.css | 5 ++++- viewfeed.js | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/functions.js b/functions.js index a6aa133e..eb49bb24 100644 --- a/functions.js +++ b/functions.js @@ -335,6 +335,21 @@ function hotkey_handler(e) { } } + if (keycode == 84) { // t + + var id = getActiveArticleId(); + + if (id) { + + var cb = document.getElementById("RCHK-" + id); + + if (cb) { + cb.checked = !cb.checked; + toggleSelectRowById(cb, "RROW-" + id); + } + } + } + if (typeof localHotkeyHandler != 'undefined') { try { return localHotkeyHandler(e); diff --git a/tt-rss.css b/tt-rss.css index b9c3e374..18e59a1d 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -873,7 +873,6 @@ div.cdmArticleUnread { div.cdmArticleSelected, div.cdmArticleUnreadSelected { margin : 0px; - padding : 10px; background-color : #fff7d5; border-color : #e7d796; border-width : 0px 0px 1px 0px; @@ -904,6 +903,10 @@ div.cdmFooter { border-style : dotted; } +div.cdmArticleSelected div.cdmFooter { + background-color : transparent; +} + div.cdmFooter span.s0 { border-width : 0px 1px 0px 0px; border-color : #c0c0c0; diff --git a/viewfeed.js b/viewfeed.js index 09cdbafb..72562974 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -966,7 +966,7 @@ function headlines_scroll_handler() { var e = document.getElementById("headlinesInnerContainer"); - if (e.scrollTop + e.offsetHeight > e.scrollHeight - (e.scrollHeight/4)) { + if (e.scrollTop + e.offsetHeight > e.scrollHeight - 300) { debug("more cowbell!"); viewNextFeedPage();