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

raeburn raeburn at source.lon-capa.org
Thu Mar 1 08:11:47 EST 2018


raeburn		Thu Mar  1 13:11:47 2018 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/homework	optionresponse.pm 
  Log:
  - For 2.11
    - Backport 1.201
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.195.2.2 loncom/homework/optionresponse.pm:1.195.2.3
--- loncom/homework/optionresponse.pm:1.195.2.2	Wed Sep 14 18:30:06 2016
+++ loncom/homework/optionresponse.pm	Thu Mar  1 13:11:47 2018
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.195.2.2 2016/09/14 18:30:06 raeburn Exp $
+# $Id: optionresponse.pm,v 1.195.2.3 2018/03/01 13:11:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -760,7 +760,7 @@
 # fieldname is this input field's name after HWVAL_
                   $optionlist='<input type="hidden" name="HWVAL_'.$fieldname.'" value="'.$escdefopt.'" />'.
                   '<input type="checkbox" name="HWCHK_'.$fieldname.'" onclick="javascript:if (this.form.elements[\'HWCHK_'.
-                  $fieldname.'\'].checked) { this.form.elements[\'HWVAL_'.$fieldname.'\'].value=\''.$esccheckboxopt.'\'; } else { this.form.elements[\'HWVAL_'.$fieldname.'\'].value=\''.$escaltopt.'\'; };setSubmittedPart(\''.$part.'\');"'.($defopt eq $checkboxopt?' checked="checked"':'')." />\n";
+                  $fieldname.'\'].checked) { this.form.elements[\'HWVAL_'.$fieldname.'\'].value=\''.$esccheckboxopt.'\'; } else { this.form.elements[\'HWVAL_'.$fieldname.'\'].value=\''.$escaltopt.'\'; };javascript:setSubmittedPart(\''.$part.'\');"'.($defopt eq $checkboxopt?' checked="checked"':'')." />\n";
               } else {
 # classic selection list
 	          $optionlist='<select onchange="javascript:setSubmittedPart(\''.




More information about the LON-CAPA-cvs mailing list