abort xmlhttp on view/viewfeed
This commit is contained in:
parent
8511f62fb3
commit
59cc876cec
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue