From: Andrew Dolgov Date: Fri, 29 Sep 2006 01:24:26 +0000 (+0100) Subject: abort xmlhttp on view/viewfeed X-Git-Tag: 1.2.4~94 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=59cc876cecc5f4ecf950b5941d13d901d30227c1;p=tt-rss.git abort xmlhttp on view/viewfeed --- diff --git a/feedlist.js b/feedlist.js index 0ad642a9..f0265178 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 9cc3aa39..5159a57f 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;