diff options
author | Andrew Dolgov <[email protected]> | 2009-02-03 17:03:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-02-03 17:03:35 +0300 |
commit | 36f787976fbbfff3cdc364810a483d68b40290b1 (patch) | |
tree | 4f319ee09b6b2cc9990f7a643012acc8a93a894a /tt-rss.js | |
parent | fe8f2f0c0df5f271feb9d48512b784c5968335dd (diff) |
render feedlist using local data when in offline mode
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1507,7 +1507,7 @@ function init_gears() { db.execute("CREATE TABLE IF NOT EXISTS cache (id text, article text, param text, added text)"); - db.execute("CREATE TABLE if not exists offline_feeds (id integer, title text)"); + db.execute("CREATE TABLE if not exists offline_feeds (id integer, title text, has_icon integer)"); db.execute("CREATE TABLE if not exists offline_data (id integer, feed_id integer, title text, link text, guid text, updated text, content text, tags text, unread text, marked text)"); @@ -1549,10 +1549,12 @@ function offline_download_parse(stage, transport) { for (var i = 0; i < feeds.length; i++) { var id = feeds[i].getAttribute("id"); + var has_icon = feeds[i].getAttribute("has_icon"); var title = feeds[i].firstChild.nodeValue; - db.execute("INSERT INTO offline_feeds (id,title) VALUES (?,?)", - [id, title]); + db.execute("INSERT INTO offline_feeds (id,title,has_icon)"+ + "VALUES (?,?,?)", + [id, title, has_icon]); } window.setTimeout("initiate_offline_download("+(stage+1)+")", 50); |