[LON-CAPA-cvs] cvs: loncom /interface londropadd.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 26 Oct 2004 15:04:21 -0000


albertel		Tue Oct 26 11:04:21 2004 EDT

  Modified files:              
    /loncom/interface	londropadd.pm 
  Log:
  - focus the username field
  
  
Index: loncom/interface/londropadd.pm
diff -u loncom/interface/londropadd.pm:1.119 loncom/interface/londropadd.pm:1.120
--- loncom/interface/londropadd.pm:1.119	Fri Oct 15 20:46:58 2004
+++ loncom/interface/londropadd.pm	Tue Oct 26 11:04:20 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to drop and add students in courses 
 #
-# $Id: londropadd.pm,v 1.119 2004/10/16 00:46:58 albertel Exp $
+# $Id: londropadd.pm,v 1.120 2004/10/26 15:04:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -914,6 +914,10 @@
     <input type="submit" name="Begin Enrollment" value="$lt{'been'}" />
     </td></tr>
 </table>
+<script type="text/javascript">
+// the if prevents the script error if the browser can not handle this
+if ( document.studentform.cuname ) { document.studentform.cuname.focus(); }
+</script>
 END
     return;
 }