// in prefetch mode we only output requested cids, main article
// just gets marked as read (it already exists in client cache)
- $feed_id = false;
-
if ($mode == "") {
outputArticleXML($link, $id, false);
} else if ($mode == "zoom") {
var sync_in_progress = false;
var sync_timer = false;
-function view_offline(id, feed_id) {
+function view_offline(id) {
try {
enableHotkeys();
tmp += "<td class='hlMarkedPic'>"+marked_pic+"</td>";
- tmp += "<td onclick='view("+id+","+feed_id+")' "+
+ tmp += "<td onclick='view("+id+")' "+
"class='hlContent' valign='middle'>";
tmp += "<a target=\"_blank\" id=\"RTITLE-"+id+"\" href=\"" +
rs.fieldByName("link") + "\"" +
- "onclick=\"return view("+id+","+feed_id+");\">"+
+ "onclick=\"return view("+id+");\">"+
rs.fieldByName("title");
tmp += "<span class=\"contentPreview\"> - "+content_preview+"</span>";
tmp += "</td>";
- tmp += "<td class=\"hlUpdated\" onclick='view("+id+","+feed_id+")'>"+
+ tmp += "<td class=\"hlUpdated\" onclick='view("+id+")'>"+
"<nobr>"+rs.fieldByName("updated").substring(0,16)+
"</nobr></td>";
}
}
-function article_callback2(transport, id, feed_id) {
+function article_callback2(transport, id) {
try {
debug("article_callback2 " + id);
return;
}
- active_real_feed_id = feed_id;
active_post_id = id;
debug("looking for articles to cache...");
}
}
-function view(id, feed_id) {
+function view(id) {
try {
- if (!feed_id) feed_id = 0;
+ debug("loading article: " + id);
- debug("loading article: " + id + "/" + feed_id);
-
- if (offline_mode) return view_offline(id, feed_id);
+ if (offline_mode) return view_offline(id);
var cached_article = cache_find(id);
enableHotkeys();
hideAuxDlg();
- //setActiveFeedId(feed_id);
-
- var query = "?op=view&id=" + param_escape(id) +
- "&feed=" + param_escape(feed_id);
+ var query = "?op=view&id=" + param_escape(id);
var date = new Date();
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
- article_callback2(transport, id, feed_id);
+ article_callback2(transport, id);
} });
return false;