diff --git a/offline.js b/offline.js index bb81acf7..6d0b05a1 100644 --- a/offline.js +++ b/offline.js @@ -219,7 +219,9 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off offset_qpart = ""; } - var query = "SELECT * FROM articles WHERE " + + var query = "SELECT *,feeds.title AS feed_title "+ + "FROM articles,feeds WHERE " + + "feed_id = feeds.id AND " + strategy_qpart + " AND " + mode_qpart + " ORDER BY updated DESC "+ @@ -230,11 +232,19 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off var line_num = offset*30; + var real_feed_id = feed_id; + while (rs.isValidRow()) { var id = rs.fieldByName("id"); var feed_id = rs.fieldByName("feed_id"); + var entry_feed_title = false; + + if (real_feed_id < 0) { + entry_feed_title = rs.fieldByName("feed_title"); + } + var marked_pic; var row_class = (line_num % 2) ? "even" : "odd"; @@ -273,7 +283,7 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off tmp += "