cdm: bring back updated/new pic
This commit is contained in:
parent
35ffb5b91d
commit
62b800b47c
12
cdm.css
12
cdm.css
|
@ -15,10 +15,18 @@ div.cdmHeader input {
|
||||||
margin-right : 5px;
|
margin-right : 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.updPic {
|
||||||
|
width : 25px;
|
||||||
|
display : inline-block;
|
||||||
|
text-align : center;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.updPic img {
|
||||||
|
vertical-align : middle;
|
||||||
|
}
|
||||||
|
|
||||||
div.cdmHeader img, div.cdmFooter img {
|
div.cdmHeader img, div.cdmFooter img {
|
||||||
margin : 0px 2px 0px 2px;
|
margin : 0px 2px 0px 2px;
|
||||||
width : 16px;
|
|
||||||
height : 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.cdmContent {
|
div.cdmContent {
|
||||||
|
|
|
@ -5343,6 +5343,8 @@
|
||||||
}
|
}
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
|
print "<div class=\"updPic\">$update_pic</div>";
|
||||||
|
|
||||||
print "<input type=\"checkbox\" onclick=\"toggleSelectRowById(this,
|
print "<input type=\"checkbox\" onclick=\"toggleSelectRowById(this,
|
||||||
'RROW-$id')\" class=\"feedCheckBox\" id=\"RCHK-$id\"/>";
|
'RROW-$id')\" class=\"feedCheckBox\" id=\"RCHK-$id\"/>";
|
||||||
|
|
||||||
|
@ -5416,10 +5418,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$article_content = sanitize_rss($link, $line["content_preview"],
|
# if ($expand_cdm) {
|
||||||
false, false, $feed_site_url);
|
$article_content = sanitize_rss($link, $line["content_preview"],
|
||||||
|
false, false, $feed_site_url);
|
||||||
|
|
||||||
if (!$article_content) $article_content = " ";
|
if (!$article_content) $article_content = " ";
|
||||||
|
# } else {
|
||||||
|
# $article_content = '';
|
||||||
|
# }
|
||||||
|
|
||||||
print "<div id=\"POSTNOTE-$id\">";
|
print "<div id=\"POSTNOTE-$id\">";
|
||||||
if ($line['note']) {
|
if ($line['note']) {
|
||||||
|
@ -5427,7 +5433,7 @@
|
||||||
}
|
}
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
print $article_content;
|
print "<span id=\"CWRAP-$id\">$article_content</span>";
|
||||||
|
|
||||||
$tmp_result = db_query($link, "SELECT always_display_enclosures FROM
|
$tmp_result = db_query($link, "SELECT always_display_enclosures FROM
|
||||||
ttrss_feeds WHERE id = ".
|
ttrss_feeds WHERE id = ".
|
||||||
|
|
16
viewfeed.js
16
viewfeed.js
|
@ -1976,6 +1976,14 @@ function cdmExpandArticle(id) {
|
||||||
|
|
||||||
var elem = $("CICD-" + active_post_id);
|
var elem = $("CICD-" + active_post_id);
|
||||||
|
|
||||||
|
var upd_img_pic = $("FUPDPIC-" + id);
|
||||||
|
|
||||||
|
if (upd_img_pic && (upd_img_pic.src.match("updated.png") ||
|
||||||
|
upd_img_pic.src.match("fresh_sign.png"))) {
|
||||||
|
|
||||||
|
upd_img_pic.src = "images/blank_icon.gif";
|
||||||
|
}
|
||||||
|
|
||||||
if (id == active_post_id && Element.visible(elem))
|
if (id == active_post_id && Element.visible(elem))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -2339,6 +2347,14 @@ function cdmClicked(event, id) {
|
||||||
if (elem)
|
if (elem)
|
||||||
elem.className = elem.className.replace("Unread", "");
|
elem.className = elem.className.replace("Unread", "");
|
||||||
|
|
||||||
|
var upd_img_pic = $("FUPDPIC-" + id);
|
||||||
|
|
||||||
|
if (upd_img_pic && (upd_img_pic.src.match("updated.png") ||
|
||||||
|
upd_img_pic.src.match("fresh_sign.png"))) {
|
||||||
|
|
||||||
|
upd_img_pic.src = "images/blank_icon.gif";
|
||||||
|
}
|
||||||
|
|
||||||
var query = "?op=rpc&subop=catchupSelected" +
|
var query = "?op=rpc&subop=catchupSelected" +
|
||||||
"&cmode=0&ids=" + param_escape(id);
|
"&cmode=0&ids=" + param_escape(id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue