1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-29 03:21:29 +00:00

abort xmlhttp on view/viewfeed

This commit is contained in:
Andrew Dolgov
2006-09-29 02:24:26 +01:00
parent 8511f62fb3
commit 59cc876cec
2 changed files with 4 additions and 0 deletions

View 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;

View 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;