]> git.wh0rd.org Git - tt-rss.git/commitdiff
bugfix: catchupAllFeeds was broken in iframe transition
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 4 Nov 2006 12:09:40 +0000 (13:09 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 4 Nov 2006 12:09:40 +0000 (13:09 +0100)
tt-rss.js

index 9af28cb7e25f0f556b0e2496cf9c3ad3f22e417e..0884ce8ae96b8b91f3a0ca4319816f8ef1a54a1f 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -249,9 +249,16 @@ function catchupAllFeeds() {
 
        notify("Marking all feeds as read...");
 
-       var feeds_frame = document.getElementById("feeds-frame");
+       debug("catchupAllFeeds Q=" + query_str);
 
-       feeds_frame.src = query_str;
+       if (xmlhttp_ready(xmlhttp)) {
+               xmlhttp.open("GET", query_str, true);
+               xmlhttp.onreadystatechange=feedlist_callback;
+               xmlhttp.send(null);
+       } else {
+               debug("xmlhttp busy");
+               //printLockingError();
+       }   
 
        global_unread = 0;
        updateTitle("");