From: Andrew Dolgov Date: Tue, 3 Feb 2009 13:26:45 +0000 (+0300) Subject: article download fixes X-Git-Tag: 1.3.1~130 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fe8f2f0c0df5f271feb9d48512b784c5968335dd;p=tt-rss.git article download fixes --- diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 53635f96..751934f3 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -568,6 +568,10 @@ while ($line = db_fetch_assoc($result)) { print "
"; } diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index e62f84e9..d7e78668 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -474,7 +474,8 @@ $amount = array( 50 => 50, 100 => 100, - 250 => 250); + 250 => 250, + 500 => 500); print_select_hash("amount", 50, $amount); diff --git a/tt-rss.js b/tt-rss.js index 5a92282d..e1ca160a 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -144,6 +144,10 @@ function backend_sanity_check_callback(transport) { return; } + if (getURLParam("offline")) { + return init_offline(); + } + var reply = transport.responseXML.firstChild.firstChild; if (!reply) { @@ -1505,7 +1509,7 @@ function init_gears() { db.execute("CREATE TABLE if not exists offline_feeds (id integer, title text)"); - 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)"); + 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)"); var qmcDownload = document.getElementById("qmcDownload"); if (qmcDownload) Element.show(qmcDownload); @@ -1564,9 +1568,10 @@ function offline_download_parse(stage, transport) { if (a) { db.execute("DELETE FROM offline_data WHERE id = ?", [a.id]); db.execute("INSERT INTO offline_data "+ - "(id, feed_id, title, link, guid, updated, content) "+ - "VALUES (?, ?, ?, ?, ?, ?, ?)", - [a.id, a.feed_id, a.title, a.link, a.guid, a.updated, a.content]); + "(id, feed_id, title, link, guid, updated, content, unread, marked) "+ + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)", + [a.id, a.feed_id, a.title, a.link, a.guid, a.updated, + a.content, a.unread, a.marked]); } }