Index: misc/autocomplete.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/autocomplete.js,v
retrieving revision 1.1
diff -u -r1.1 autocomplete.js
--- misc/autocomplete.js	24 May 2005 06:00:21 -0000	1.1
+++ misc/autocomplete.js	24 May 2005 09:01:24 -0000
@@ -44,7 +44,6 @@
   var ac = this;
   this.input = input;
   this.db = db;
-  this.db.owner = this;
   this.input.onkeydown = function (event) { return ac.onkeydown(this, event); };
   this.input.onkeyup = function (event) { ac.onkeyup(this, event) };
   this.input.onblur = function () { ac.hidePopup() };
@@ -182,6 +181,7 @@
   this.popup.style.left  = pos.x +'px';
   this.popup.style.width = (this.input.offsetWidth - 4) +'px';
   addClass(this.input, 'throbbing');
+  this.db.owner = this;
   this.db.search(this.input.value);
 }
 
@@ -249,6 +249,7 @@
  */
 ACDB.prototype.receive = function(string, xmlhttp, acdb) {
   if (xmlhttp.status != 200) {
+    removeClass(acdb.owner.input, 'throbbing');
     return alert('An HTTP error '+ xmlhttp.status +' occured.\n'+ acdb.uri);
   }
   // Split into array of key->value pairs
