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

banghart lon-capa-cvs@mail.lon-capa.org
Wed, 22 Nov 2006 22:53:42 -0000


banghart		Wed Nov 22 17:53:42 2006 EDT

  Modified files:              
    /loncom/interface	londropadd.pm 
  Log:
  	Bug 5087. Make "ignore first line" checkbox sticky.
  
  
Index: loncom/interface/londropadd.pm
diff -u loncom/interface/londropadd.pm:1.147 loncom/interface/londropadd.pm:1.148
--- loncom/interface/londropadd.pm:1.147	Tue Aug  8 15:02:04 2006
+++ loncom/interface/londropadd.pm	Wed Nov 22 17:53:41 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to drop and add students in courses 
 #
-# $Id: londropadd.pm,v 1.147 2006/08/08 19:02:04 albertel Exp $
+# $Id: londropadd.pm,v 1.148 2006/11/22 22:53:41 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -250,7 +250,7 @@
     #
     my $javascript_validations=&javascript_validations('auth',$krbdefdom,
                                     $password_choice);
-    my $checked=(($env{'form.noFirstLine'})?' checked="1"':'');
+    my $checked=(($env{'form.noFirstLine'})?' CHECKED ':'');
     $r->print('<h3>'.&mt('Uploading Class List')."</h3>\n".
               "<hr>\n".
               '<h3>'.&mt('Identify fields')."</h3>\n");
@@ -269,7 +269,7 @@
     $r->print('<input type="button" value="Reverse Association" '.
               'name="'.&mt('Reverse Association').'" '.
               'onClick="javascript:this.form.associate.value=\'Reverse Association\';submit(this.form);" />');
-    $r->print('<label><input type="checkbox" name="noFirstLine" $checked />'.
+    $r->print('<label><input type="checkbox" name="noFirstLine"'.$checked.'/>'.
               &mt('Ignore First Line').'</label>');
     $r->print("<hr />\n".
               '<script type="text/javascript" language="Javascript">'."\n".