diff options
author | Andrew Dolgov <[email protected]> | 2009-02-03 18:21:39 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-02-03 18:21:39 +0300 |
commit | 95f0c2c5b3c1739faf45e21d19795471d10b67ae (patch) | |
tree | 20af97f67afc86533bb81a3baf591cbe8dc0f13d /tt-rss.js | |
parent | 1ea930cbea6e66a76a8ef89129a41923102b9292 (diff) |
only download articles which are newer than the last stored in local db
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1600,6 +1600,11 @@ function initiate_offline_download(stage) { var query = "backend.php?op=rpc&subop=download&stage=" + stage; + var rs = db.execute("SELECT MAX(id) FROM articles"); + if (rs.isValidRow()) { + query = query + "&cid=" + rs.field(0); + } + if (document.getElementById("download_ops_form")) { query = query + "&" + Form.serialize("download_ops_form"); } |