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

raeburn raeburn at source.lon-capa.org
Tue Apr 7 11:08:12 EDT 2015


raeburn		Tue Apr  7 15:08:12 2015 EDT

  Modified files:              
    /loncom/homework	radiobuttonresponse.pm 
  Log:
  - Satisfy w3c xhtml validation.
  
  
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.158 loncom/homework/radiobuttonresponse.pm:1.159
--- loncom/homework/radiobuttonresponse.pm:1.158	Mon Jan 19 15:35:53 2015
+++ loncom/homework/radiobuttonresponse.pm	Tue Apr  7 15:08:12 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.158 2015/01/19 15:35:53 goltermann Exp $
+# $Id: radiobuttonresponse.pm,v 1.159 2015/04/07 15:08:12 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -825,10 +825,10 @@
 
     my $result='<label>';
     
-    $result .= '<input type="radio"
-                onchange="javascript:setSubmittedPart(' . "'$part');\""
-		. 'name="HWVAL_' . $fieldname . '"'
-		. "value='$value'";
+    $result .= '<input type="radio" '
+		. 'onchange="javascript:setSubmittedPart(' . "'$part');\" "
+		. 'name="HWVAL_' . $fieldname . '" '
+		. 'value="'.$value.'"';
 
     if (defined($last_responses->{$name})) {
 	$result .= '  checked="checked" ';




More information about the LON-CAPA-cvs mailing list