includes/clientside/static/ajax.js
changeset 592 27377179fe58
parent 585 35e91d16ecf5
child 650 e45183014778
--- a/includes/clientside/static/ajax.js	Mon Jun 30 17:22:29 2008 -0400
+++ b/includes/clientside/static/ajax.js	Wed Jul 02 19:36:44 2008 -0400
@@ -149,7 +149,11 @@
   if ( !box )
     return false;
   
-  var newname = ( obj.getElementsByTagName('input')[0] ).value;
+  var input = obj.getElementsByTagName('input')[0];
+  console.debug(obj, input);
+  if ( !input )
+    return false;
+  var newname = input.value;
   newname = trim(newname);
   
   if ( newname.length < 1 )