Skip to content

Commit

Permalink
Fixed issue #05765: other_numbers_only advanced question option not w…
Browse files Browse the repository at this point in the history
…orking

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12376 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
tmswhite committed Feb 6, 2012
1 parent c826d6d commit d9e13fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -2366,7 +2366,7 @@ function do_multiplechoice($ia)
{
$sSeperator = getRadixPointData($thissurvey['surveyls_numberformat']);
$sSeperator= $sSeperator['seperator'];
$numbersonly = 'return goodchars(event,"0123456789'.$sSeperator.'")';
$numbersonly = " onkeypress='return goodchars(event,\"0123456789$sSeperator\")'";
}
else
{
Expand Down Expand Up @@ -2577,7 +2577,7 @@ function do_multiplechoice($ia)
{
$answer .= ' value="'.htmlspecialchars($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$myfname],ENT_QUOTES).'"';
}
$answer .= " onchange='$(\"#java{$myfname}\").val(this.value);$checkconditionFunction(this.value, this.name, this.type);if ($.trim($(\"#java{$myfname}\").val())!=\"\" && !document.getElementById(\"answer{$myfname}cbox\").checked) { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"checked\"); } $numbersonly ' />";
$answer .= " onchange='$(\"#java{$myfname}\").val(this.value);$checkconditionFunction(this.value, this.name, this.type);if ($.trim($(\"#java{$myfname}\").val())!=\"\" && !document.getElementById(\"answer{$myfname}cbox\").checked) { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"checked\"); }' $numbersonly />";
$answer .= '<input type="hidden" name="java'.$myfname.'" id="java'.$myfname.'" value="';

// if ($maxansw > 0)
Expand Down

0 comments on commit d9e13fa

Please sign in to comment.