]> git.wh0rd.org Git - tt-rss.git/commitdiff
abort xmlhttp on view/viewfeed
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 29 Sep 2006 01:24:26 +0000 (02:24 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 29 Sep 2006 01:24:26 +0000 (02:24 +0100)
feedlist.js
viewfeed.js

index 0ad642a97bc5b8369174b94ba7caa0f5919bf761..f0265178c7a724e162cae2103aab748419160223 100644 (file)
@@ -101,6 +101,8 @@ function viewfeed(feed, subop, is_cat, subop_param) {
 
                notify("Loading, please wait...", true);
 
+               xmlhttp.abort();
+
                if (xmlhttp_ready(xmlhttp)) {
                        xmlhttp.open("GET", query, true);
                        xmlhttp.onreadystatechange=headlines_callback;
index 9cc3aa3908b71283382b6b2b22dce2b9f826bb2d..5159a57f6a3ee191df0f62500d7bf1cfafdd3672 100644 (file)
@@ -54,6 +54,8 @@ function view(id, feed_id) {
                var query = "backend.php?op=view&id=" + param_escape(id) +
                        "&feed=" + param_escape(feed_id);
 
+               xmlhttp.abort();
+
                if (xmlhttp_ready(xmlhttp)) {
                        xmlhttp.open("GET", query, true);
                        xmlhttp.onreadystatechange=article_callback;