From: Andrew Dolgov Date: Sat, 4 Nov 2006 12:09:40 +0000 (+0100) Subject: bugfix: catchupAllFeeds was broken in iframe transition X-Git-Tag: 1.2.5~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ca2f46a72ddc92c5aa1bce4c795bc87d03f404b5;p=tt-rss.git bugfix: catchupAllFeeds was broken in iframe transition --- diff --git a/tt-rss.js b/tt-rss.js index 9af28cb7..0884ce8a 100644 --- 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("");