diff --git a/offline.js b/offline.js index 58c2377c2..a46702144 100644 --- a/offline.js +++ b/offline.js @@ -4,12 +4,45 @@ function view_offline(id, feed_id) { enableHotkeys(); showArticleInHeadlines(id); - if (db) { - db.execute("UPDATE articles SET unread = 0 WHERE id = ?", [id]); - } + db.execute("UPDATE articles SET unread = 0 WHERE id = ?", [id]); - render_article("FIXME"); - update_local_feedlist_counters(); + var rs = db.execute("SELECT * FROM articles WHERE id = ?", [id]); + + if (rs.isValidRow()) { + + var tmp = "