Fixing bug which caused that the term list was never updated.
authorAnders S. Mortensen <sondberg@indexdata.dk>
Mon, 18 Dec 2006 13:16:30 +0000 (13:16 +0000)
committerAnders S. Mortensen <sondberg@indexdata.dk>
Mon, 18 Dec 2006 13:16:30 +0000 (13:16 +0000)
www/test1/index.html

index a79bc68..6ea1e45 100644 (file)
@@ -175,13 +175,15 @@ function show_termlist()
 {
     if (xtermlist.readyState != 4)
        return;
+
     var i;
     var xml = xtermlist.responseXML;
     var body = document.getElementById("termlist");
     var hits = xml.getElementsByTagName("term");
     if (!hits[0])
     {
-       termtimer = (check_termlist, 1000);
+       termtimer = setTimeout(check_termlist, 1000);
+        
     }
     else
     {