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

raeburn raeburn at source.lon-capa.org
Tue Apr 7 11:26:24 EDT 2015


raeburn		Tue Apr  7 15:26:24 2015 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/homework	radiobuttonresponse.pm 
  Log:
  - For 2.11
    Backport 1.159
  
  
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.157 loncom/homework/radiobuttonresponse.pm:1.157.2.1
--- loncom/homework/radiobuttonresponse.pm:1.157	Tue Apr 30 03:03:34 2013
+++ loncom/homework/radiobuttonresponse.pm	Tue Apr  7 15:26:24 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.157 2013/04/30 03:03:34 raeburn Exp $
+# $Id: radiobuttonresponse.pm,v 1.157.2.1 2015/04/07 15:26:24 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -824,10 +824,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