From: Andrew Dolgov Date: Fri, 19 May 2006 03:17:36 +0000 (+0100) Subject: more feedback & race condition fix in browserToggleExpand() X-Git-Tag: 1.2.0~72 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ff725e9bec37f92b1dc5d510245d53b97404b6f7;p=tt-rss.git more feedback & race condition fix in browserToggleExpand() --- 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;