diff --git a/application/helpers/qanda_helper.php b/application/helpers/qanda_helper.php index 1041fdc35af..cc8c21e82ce 100644 --- a/application/helpers/qanda_helper.php +++ b/application/helpers/qanda_helper.php @@ -2519,7 +2519,7 @@ function do_multiplechoice($ia) $answer .= " if(this.checked===true) { document.getElementById(\"answer$myfname\").focus(); }; LEMflagMandOther(\"$myfname\",this.checked);"; $answer .= "' /> - getConfig('surveyID')][$myfname])) { $dispVal = $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$myfname]; @@ -2527,9 +2527,9 @@ function do_multiplechoice($ia) { $dispVal = str_replace('.',$sSeperator,$dispVal); } - $answer .= ' value="'.htmlspecialchars($dispVal,ENT_QUOTES).'"'; + $answer .= htmlspecialchars($dispVal,ENT_QUOTES); } - $answer .= " onchange='$(\"#java{$myfname}\").val(this.value);$oth_checkconditionFunction(this.value, this.name, this.type);if ($.trim($(\"#java{$myfname}\").val())!=\"\") { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"checked\"); } else { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"\"); }; LEMflagMandOther(\"$myfname\",this.checked);' $numbersonly />"; + $answer .= "\" onchange='$(\"#java{$myfname}\").val(this.value);$oth_checkconditionFunction(this.value, this.name, this.type);if ($.trim($(\"#java{$myfname}\").val())!=\"\") { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"checked\"); } else { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"\"); }; LEMflagMandOther(\"$myfname\",this.checked);' $numbersonly />"; $answer .= '') @@ -88,8 +63,6 @@ function jalert(text) { $(document).ready(function(){ //autoDisabledComment(); - addClassEmpty(); - })