mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-06-24 11:56:36 +02:00
more feedback & race condition fix in browserToggleExpand()
This commit is contained in:
parent
9a35e16d1e
commit
ff725e9bec
8
prefs.js
8
prefs.js
|
@ -1451,6 +1451,11 @@ function browserToggleExpand(id) {
|
|||
d.style.display = "none";
|
||||
} */
|
||||
|
||||
if (!xmlhttp_ready(xmlhttp)) {
|
||||
printLockingError();
|
||||
return
|
||||
}
|
||||
|
||||
var d = document.getElementById("BRDET-" + id);
|
||||
|
||||
if (d.style.display == "block") {
|
||||
|
@ -1460,6 +1465,9 @@ function browserToggleExpand(id) {
|
|||
|
||||
feed_to_expand = id;
|
||||
|
||||
d.style.display = "block";
|
||||
d.innerHTML = "Loading, please wait...";
|
||||
|
||||
xmlhttp.open("GET", "backend.php?op=pref-feed-browser&subop=details&id="
|
||||
+ param_escape(id), true);
|
||||
xmlhttp.onreadystatechange=expand_feed_callback;
|
||||
|
|
Loading…
Reference in New Issue
Block a user