parse article reply for content to cache even when it is out of sequence
This commit is contained in:
parent
3f70f90ffe
commit
fbcabe1e3e
21
viewfeed.js
21
viewfeed.js
|
@ -322,16 +322,9 @@ function article_callback2(transport, id, feed_id) {
|
||||||
try {
|
try {
|
||||||
debug("article_callback2 " + id);
|
debug("article_callback2 " + id);
|
||||||
|
|
||||||
if (id != last_requested_article) return;
|
|
||||||
|
|
||||||
if (transport.responseXML) {
|
if (transport.responseXML) {
|
||||||
|
|
||||||
active_real_feed_id = feed_id;
|
debug("looking for articles to cache...");
|
||||||
active_post_id = id;
|
|
||||||
|
|
||||||
showArticleInHeadlines(id);
|
|
||||||
|
|
||||||
var reply = transport.responseXML.firstChild.firstChild;
|
|
||||||
|
|
||||||
var articles = transport.responseXML.getElementsByTagName("article");
|
var articles = transport.responseXML.getElementsByTagName("article");
|
||||||
|
|
||||||
|
@ -348,6 +341,18 @@ function article_callback2(transport, id, feed_id) {
|
||||||
cache_inject(a_id, articles[i].firstChild.nodeValue);
|
cache_inject(a_id, articles[i].firstChild.nodeValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (id != last_requested_article) {
|
||||||
|
debug("requested article id is out of sequence, aborting");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
active_real_feed_id = feed_id;
|
||||||
|
active_post_id = id;
|
||||||
|
|
||||||
|
showArticleInHeadlines(id);
|
||||||
|
|
||||||
|
var reply = transport.responseXML.firstChild.firstChild;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
debug("article_callback: returned no XML object");
|
debug("article_callback: returned no XML object");
|
||||||
var f = document.getElementById("content-frame");
|
var f = document.getElementById("content-frame");
|
||||||
|
|
Loading…
Reference in New Issue