[sword-svn] r197 - trunk
scribe at crosswire.org
scribe at crosswire.org
Tue Mar 15 17:58:00 MST 2005
Author: scribe
Date: 2005-03-15 17:58:00 -0700 (Tue, 15 Mar 2005)
New Revision: 197
Modified:
trunk/swordweb.js
Log:
Only make the call to lookup definition if we're showing-- not hiding.
Modified: trunk/swordweb.js
===================================================================
--- trunk/swordweb.js 2005-03-14 19:39:35 UTC (rev 196)
+++ trunk/swordweb.js 2005-03-16 00:58:00 UTC (rev 197)
@@ -74,28 +74,28 @@
if (mod == "G") mod = "StrongsGreek";
if (mod == "H") mod = "StrongsHebrew";
- xmlhttp.open("GET", "fetchdata.jsp?mod="+mod+"&key="+key,true);
- xmlhttp.onreadystatechange=function() {
- if (xmlhttp.readyState==4) {
- b=document.getElementById("onlywlayer");
- if (b==null) {
- b=document.createElement("div");
- b.id="onlywlayer";
- b.className="word-layer";
- document.body.appendChild(b);
- b.style.visibility = "hidden";
- }
- b.innerHTML=xmlhttp.responseText + "<br/>"+extratext;
- if ((wordnum == lastword) && (b.style.visibility == "visible")) {
- showhide("onlywlayer", "hidden");
- }
- else {
+ if ((wordnum == lastword) && (b.style.visibility == "visible")) {
+ showhide("onlywlayer", "hidden");
+ }
+ else {
+ xmlhttp.open("GET", "fetchdata.jsp?mod="+mod+"&key="+key,true);
+ xmlhttp.onreadystatechange=function() {
+ if (xmlhttp.readyState==4) {
+ b=document.getElementById("onlywlayer");
+ if (b==null) {
+ b=document.createElement("div");
+ b.id="onlywlayer";
+ b.className="word-layer";
+ document.body.appendChild(b);
+ b.style.visibility = "hidden";
+ }
+ b.innerHTML=xmlhttp.responseText + "<br/>"+extratext;
showhide("onlywlayer", "visible");
+ lastword = wordnum;
}
- lastword = wordnum;
}
+ xmlhttp.send(null)
}
- xmlhttp.send(null)
}
More information about the sword-cvs
mailing list