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

raeburn raeburn at source.lon-capa.org
Wed Feb 28 08:20:51 EST 2018


raeburn		Wed Feb 28 13:20:51 2018 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  - Eliminate javascript error in composite page conatining optionresponse.
    - Regular expression in lonpage.pm which is used to append prefix argument
      in call to setSubmittedPart() expects string javascript:setSubmittedPart 
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.200 loncom/homework/optionresponse.pm:1.201
--- loncom/homework/optionresponse.pm:1.200	Tue Apr 28 13:12:52 2015
+++ loncom/homework/optionresponse.pm	Wed Feb 28 13:20:50 2018
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.200 2015/04/28 13:12:52 raeburn Exp $
+# $Id: optionresponse.pm,v 1.201 2018/02/28 13:20:50 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -795,7 +795,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