]> git.wh0rd.org Git - tt-rss.git/commitdiff
view: do not pass feed_id
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 29 Dec 2009 19:38:22 +0000 (22:38 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 29 Dec 2009 19:38:22 +0000 (22:38 +0300)
backend.php
offline.js
viewfeed.js

index f6e7acc79e68d4c3335f7023e76624575a5dc9d2..e1cc82a1280bde611be93f63f1966ad5c749e050 100644 (file)
                        // 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") {
index 2650515f149f2f80bc54479cf56e3cdc8234757e..ca2ae0990ebef93aba854040bcdf7a9da723fe0c 100644 (file)
@@ -8,7 +8,7 @@ var articles_synced = 0;
 var sync_in_progress = false;
 var sync_timer = false;
 
-function view_offline(id, feed_id) {
+function view_offline(id) {
        try {
 
                enableHotkeys();
@@ -337,12 +337,12 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
                                        
                                        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>";
@@ -359,7 +359,7 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
 
                                        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>";
        
index d0c325d2d7445d79184d7987208b3c0e0033ab6f..99bab234e13ef66bf85b0b2498d29d445e74958b 100644 (file)
@@ -363,7 +363,7 @@ function showArticleInHeadlines(id) {
        }
 }
 
-function article_callback2(transport, id, feed_id) {
+function article_callback2(transport, id) {
        try {
                debug("article_callback2 " + id);
 
@@ -392,7 +392,6 @@ function article_callback2(transport, id, feed_id) {
                                return;
                        }
 
-                       active_real_feed_id = feed_id;
                        active_post_id = id; 
 
                        debug("looking for articles to cache...");
@@ -457,13 +456,11 @@ function article_callback2(transport, id, feed_id) {
        }
 }
 
-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);
 
@@ -472,10 +469,7 @@ function view(id, feed_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();
 
@@ -559,7 +553,7 @@ function view(id, feed_id) {
                new Ajax.Request("backend.php", {
                        parameters: query,
                        onComplete: function(transport) { 
-                               article_callback2(transport, id, feed_id); 
+                               article_callback2(transport, id); 
                        } });
 
                return false;