1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 00:05:56 +00:00

offline: try to keep local server info ready for offline mode

This commit is contained in:
Andrew Dolgov
2009-02-13 00:12:18 +03:00
parent a970edb1a2
commit 9ca945a6d2
3 changed files with 55 additions and 17 deletions

View File

@@ -48,6 +48,11 @@ function clean_feed_selections() {
function headlines_callback2(transport, feed_cur_page) {
try {
if (!transport.responseText && db) {
offlineConfirmModeChange();
return;
}
loading_set_progress(100);
debug("headlines_callback2 [page=" + feed_cur_page + "]");
@@ -312,6 +317,11 @@ function article_callback2(transport, id, feed_id) {
try {
debug("article_callback2 " + id);
if (!transport.responseText && db) {
offlineConfirmModeChange();
return;
}
if (transport.responseXML) {
if (!transport_error_check(transport)) return;