summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-19 04:17:36 +0100
committerAndrew Dolgov <[email protected]>2006-05-19 04:17:36 +0100
commitff725e9bec37f92b1dc5d510245d53b97404b6f7 (patch)
tree9a927d2f50a3f1cb90f35ae71701e8066a695f7b /prefs.js
parent9a35e16d1e4a78666fcc186d92b989178a028791 (diff)
more feedback & race condition fix in browserToggleExpand()
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index 1994495a9..85c707e61 100644
--- a/prefs.js
+++ b/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;