array_push($topmost_article_ids, $id);\r
}\r
\r
- if ($line["last_read"] == "" && !sql_bool_to_bool($line["unread"])) {\r
-\r
- $update_pic = "<img id='FUPDPIC-$id' src=\"".\r
- theme_image($this->link, 'images/updated.png')."\"\r
- alt=\"Updated\">";\r
- } else {\r
- $update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\"\r
- alt=\"Updated\">";\r
- }\r
-\r
- if (sql_bool_to_bool($line["unread"]) &&\r
- time() - strtotime($line["updated_noms"]) < $fresh_intl) {\r
-\r
- $update_pic = "<img id='FUPDPIC-$id' src=\"".\r
- theme_image($this->link, 'images/fresh_sign.png')."\" alt=\"Fresh\">";\r
- }\r
-\r
if ($line["unread"] == "t" || $line["unread"] == "1") {\r
$class .= " Unread";\r
++$num_unread;\r
\r
$reply['content'] .= "<div class='$class' id='RROW-$id' $label_row_style $mouseover_attrs>";\r
\r
- $reply['content'] .= "<div class='hlUpdPic'>$update_pic</div>";\r
-\r
$reply['content'] .= "<div class='hlLeft'>";\r
\r
$reply['content'] .= "<input dojoType=\"dijit.form.CheckBox\"\r
title=\"".htmlspecialchars($line["feed_title"])."\"\r
onclick=\"viewfeed($feed_id)\">$feed_icon_img</span>";\r
}\r
- $reply['content'] .= "<div class=\"updPic\">$update_pic</div>";\r
$reply['content'] .= "</div>";\r
\r
$reply['content'] .= "</div>";\r
selectArticles('none');
- var upd_img_pic = $("FUPDPIC-" + id);
-
var view_mode = false;
try {
//
}
- 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";
-
- cache_headlines(getActiveFeedId(), activeFeedIsCat(), null, $("headlines-frame").innerHTML);
-
- } else if (article_is_unread && view_mode == "all_articles") {
+ if (article_is_unread && view_mode == "all_articles") {
cache_headlines(getActiveFeedId(), activeFeedIsCat(), null, $("headlines-frame").innerHTML);
}
if (reply) {
- var upic = $('FUPDPIC-' + id);
-
- if (upic) upic.src = 'images/blank_icon.gif';
-
reply.each(function(article) {
if (active_post_id == article['id']) {
render_article(article['content']);
precache_headlines();
- if (!cached_article) {
-
- var upic = $('FUPDPIC-' + id);
-
- if (upic) {
- upic.src = getInitParam("sign_progress");
- }
-
- } else if (cached_article && article_is_unread) {
+ if (cached_article && article_is_unread) {
query = query + "&mode=prefetch";
if (mode == "all") {
child.addClassName("Selected");
- cb.attr("checked", true);
+ if (cb) cb.attr("checked", true);
} else if (mode == "unread") {
if (child.hasClassName("Unread")) {
child.addClassName("Selected");
- cb.attr("checked", true);
+ if (cb) cb.attr("checked", true);
} else {
child.removeClassName("Selected");
- cb.attr("checked", false);
+ if (cb) cb.attr("checked", false);
}
} else if (mode == "marked") {
var img = $("FMPIC-" + child.id.replace("RROW-", ""));
if (img && img.src.match("mark_set")) {
child.addClassName("Selected");
- cb.attr("checked", true);
+ if (cb) cb.attr("checked", true);
} else {
child.removeClassName("Selected");
- cb.attr("checked", false);
+ if (cb) cb.attr("checked", false);
}
} else if (mode == "published") {
var img = $("FPPIC-" + child.id.replace("RROW-", ""));
if (img && img.src.match("pub_set")) {
child.addClassName("Selected");
- cb.attr("checked", true);
+ if (cb) cb.attr("checked", true);
} else {
child.removeClassName("Selected");
- cb.attr("checked", false);
+ if (cb) cb.attr("checked", false);
}
} else if (mode == "invert") {
if (child.hasClassName("Selected")) {
child.removeClassName("Selected");
- cb.attr("checked", false);
+ if (cb) cb.attr("checked", false);
} else {
child.addClassName("Selected");
- cb.attr("checked", true);
+ if (cb) cb.attr("checked", true);
}
} else {
child.removeClassName("Selected");
- cb.attr("checked", false);
+ if (cb) cb.attr("checked", false);
}
});
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))
return true;
if (elem)
elem.removeClassName("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";
- }
-
active_post_id = id;
if (article_is_unread) {