mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +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);
|
notify("Loading, please wait...", true);
|
||||||
|
|
||||||
|
xmlhttp.abort();
|
||||||
|
|
||||||
if (xmlhttp_ready(xmlhttp)) {
|
if (xmlhttp_ready(xmlhttp)) {
|
||||||
xmlhttp.open("GET", query, true);
|
xmlhttp.open("GET", query, true);
|
||||||
xmlhttp.onreadystatechange=headlines_callback;
|
xmlhttp.onreadystatechange=headlines_callback;
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ function view(id, feed_id) {
|
|||||||
var query = "backend.php?op=view&id=" + param_escape(id) +
|
var query = "backend.php?op=view&id=" + param_escape(id) +
|
||||||
"&feed=" + param_escape(feed_id);
|
"&feed=" + param_escape(feed_id);
|
||||||
|
|
||||||
|
xmlhttp.abort();
|
||||||
|
|
||||||
if (xmlhttp_ready(xmlhttp)) {
|
if (xmlhttp_ready(xmlhttp)) {
|
||||||
xmlhttp.open("GET", query, true);
|
xmlhttp.open("GET", query, true);
|
||||||
xmlhttp.onreadystatechange=article_callback;
|
xmlhttp.onreadystatechange=article_callback;
|
||||||
|
|||||||
Reference in New Issue
Block a user