summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feedlist.js2
-rw-r--r--viewfeed.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/feedlist.js b/feedlist.js
index 0ad642a97..f0265178c 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -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;
diff --git a/viewfeed.js b/viewfeed.js
index 9cc3aa390..5159a57f6 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -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;