Update of /var/cvs/contributions/didactor2/src/core/metainf/tags/di/core
In directory james.mmbase.org:/tmp/cvs-serv14669

Modified Files:
        head.tagx 
Log Message:



See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/metainf/tags/di/core


Index: head.tagx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/metainf/tags/di/core/head.tagx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- head.tagx   14 Mar 2008 19:28:22 -0000      1.7
+++ head.tagx   14 Mar 2008 19:32:39 -0000      1.8
@@ -36,6 +36,7 @@
       // I'm not sure the javascript has a correct place here
       addEventHandler(window, "load", function() {
         var form = document.forms[0];
+        if (form != null) {
         for (var i=0; i < form.elements.length; i++) {
           var elem = form.elements[i];
           // find first editable field
@@ -45,6 +46,7 @@
             break;
           }
         }
+        }
           });
     </script>
     <jsp:doBody />
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to