]> git.wh0rd.org Git - tt-rss.git/commitdiff
CDM and infinite scrolling tweaks
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 9 Aug 2007 08:36:56 +0000 (09:36 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 9 Aug 2007 08:36:56 +0000 (09:36 +0100)
functions.js
tt-rss.css
viewfeed.js

index a6aa133efaa3865c4750cea95860f3edaeddac7c..eb49bb24c057c19daacc73b78ecb7246b70327e1 100644 (file)
@@ -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);
index b9c3e3748d5fdc2fcce1f0d4ef2a1c90887465d0..18e59a1d86eb322c5863f3ceaaddd73fc96082d8 100644 (file)
@@ -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;
index 09cdbafbca8e8e758853774833d0873fbd4e8860..725629747534dcef735cdb03076dd863906b05b1 100644 (file)
@@ -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();