CDM and infinite scrolling tweaks
This commit is contained in:
parent
e2ccbfab0a
commit
a219fec54d
3 changed files with 20 additions and 2 deletions
15
functions.js
15
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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue