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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user