mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 22:31:28 +00:00
more feedback & race condition fix in browserToggleExpand()
This commit is contained in:
8
prefs.js
8
prefs.js
@@ -1451,6 +1451,11 @@ function browserToggleExpand(id) {
|
|||||||
d.style.display = "none";
|
d.style.display = "none";
|
||||||
} */
|
} */
|
||||||
|
|
||||||
|
if (!xmlhttp_ready(xmlhttp)) {
|
||||||
|
printLockingError();
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var d = document.getElementById("BRDET-" + id);
|
var d = document.getElementById("BRDET-" + id);
|
||||||
|
|
||||||
if (d.style.display == "block") {
|
if (d.style.display == "block") {
|
||||||
@@ -1460,6 +1465,9 @@ function browserToggleExpand(id) {
|
|||||||
|
|
||||||
feed_to_expand = 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="
|
xmlhttp.open("GET", "backend.php?op=pref-feed-browser&subop=details&id="
|
||||||
+ param_escape(id), true);
|
+ param_escape(id), true);
|
||||||
xmlhttp.onreadystatechange=expand_feed_callback;
|
xmlhttp.onreadystatechange=expand_feed_callback;
|
||||||
|
|||||||
Reference in New Issue
Block a user