From ff725e9bec37f92b1dc5d510245d53b97404b6f7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 May 2006 04:17:36 +0100 Subject: [PATCH] more feedback & race condition fix in browserToggleExpand() --- prefs.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prefs.js b/prefs.js index 1994495a..85c707e6 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; -- 2.39.5