make 'v' hotkey work in CDM mode

This commit is contained in:
Andrew Dolgov 2007-08-09 07:56:11 +01:00
parent 8a5b4579fa
commit e4914b6275
5 changed files with 33 additions and 1 deletions

View File

@ -1762,3 +1762,4 @@ function openArticleInNewWindow(id) {
exception_error("openArticleInNewWindow", e);
}
}

View File

@ -3917,7 +3917,9 @@
$add_class = "";
}
print "<div class=\"cdmArticle$add_class\" id=\"RROW-$id\">";
print "<div class=\"cdmArticle$add_class\"
id=\"RROW-$id\" onmouseover='cdmMouseIn(this)'
onmouseout='cdmMouseOut(this)'>";
print "<div class=\"cdmHeader\">";

View File

@ -845,6 +845,10 @@ td.hlFeed {
text-align : right;
}
div.cdmArticle:hover {
background-color : white;
}
div.cdmArticle {
border-color : #c0c0c0;
border-width : 0px 0px 1px 0px;
@ -854,6 +858,10 @@ div.cdmArticle {
padding : 10px;
}
div.cdmArticleUnread:hover {
background-color : white;
}
div.cdmArticleUnread {
border-color : #c0c0c0;
border-width : 0px 0px 1px 0px;
@ -881,6 +889,10 @@ div.cdmHeader {
padding-bottom : 5px;
}
div.cdmArticleUnread div.cdmHeader a {
color : black;
}
div.cdmFooter {
font-size : 9pt;
color : gray;

View File

@ -715,3 +715,4 @@ function feedEditSave() {
}
}

View File

@ -921,3 +921,19 @@ function cache_invalidate(id) {
function getActiveArticleId() {
return active_post_id;
}
function cdmMouseIn(elem) {
try {
if (elem.id && elem.id.match("RROW-")) {
var id = elem.id.replace("RROW-", "");
active_post_id = id;
}
} catch (e) {
exception_error("cdmMouseIn", e);
}
}
function cdmMouseOut(elem) {
active_post_id = false;
}