hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);
- var unread = get_local_feed_unread(-4);
-
- global_unread = unread;
+ global_unread = get_local_feed_unread(-4);
updateTitle();
} catch (e) {
//$unread_only = db_escape_string($_REQUEST["unread_only"]);
//if (!$amount) $amount = 50;
- $amount = 100;
+ $amount = 200;
$unread_only = true;
print "<rpc-reply>";
$line["unread"] = (int)sql_bool_to_bool($line["unread"]);
$line["tags"] = format_tags_string(get_article_tags($link, $id), $id);
-
print json_encode($line);
print "]]></article>";
}
debug("<b>updateFeedList</b>");
+ if (offline_mode) return render_offline_feedlist();
+
var query_str = "backend.php?op=feeds";
if (display_tags) {
[id, title, has_icon]);
}
- window.setTimeout("update_offline_data("+(stage+1)+")", 50);
+ window.setTimeout("update_offline_data("+(stage+1)+")", 30*1000);
} else {
var articles = transport.responseXML.getElementsByTagName("article");
}
if (articles_found > 0) {
- window.setTimeout("update_offline_data("+(stage+1)+")", 50);
+ window.setTimeout("update_offline_data("+(stage+1)+")", 60*1000);
} else {
-// notify_info("All done.");
-// closeInfoBox();
+ window.setTimeout("update_offline_data(0)", 1800*1000);
}
}
new Ajax.Request(query, {
onComplete: function(transport) {
offline_download_parse(stage, transport);
+ debug("update_offline_data: done " + stage);
} });
} catch (e) {