[LON-CAPA-cvs] cvs: loncom /homework edit.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 06 Feb 2006 21:59:44 -0000


albertel		Mon Feb  6 16:59:44 2006 EDT

  Modified files:              
    /loncom/homework	edit.pm 
  Log:
  - <label> checked args in Edit
  
  
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.99 loncom/homework/edit.pm:1.100
--- loncom/homework/edit.pm:1.99	Thu Dec 22 17:06:54 2005
+++ loncom/homework/edit.pm	Mon Feb  6 16:59:44 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.99 2005/12/22 22:06:54 albertel Exp $
+# $Id: edit.pm,v 1.100 2006/02/06 21:59:44 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -683,7 +683,7 @@
 	    $text=$option;
 	    $value='value="'.$option.'"';
 	}
-	$result.="<nobr><input type='checkbox' $value name='".
+	$result.="<nobr><label><input type='checkbox' $value name='".
 	    &html_element_name($name)."'";
 	foreach my $selected (split(/,/,$allselected)) {
 	    if ( $selected eq $option ) {
@@ -691,7 +691,7 @@
 		last;
 	    }
 	}
-	$result.=&element_change_detection()." />$text</nobr>\n";
+	$result.=&element_change_detection()." />$text</label></nobr>\n";
     }
     return $result;
 }