Skip to content

Commit

Permalink
Dev Extend support for JS keypad to array/numbers.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9645 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Yuri D'Elia committed Dec 16, 2010
1 parent e94f2c8 commit 4f709c5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion qanda.php
Expand Up @@ -6619,6 +6619,16 @@ function do_array_multiflexi($ia)
$maxsize=255;
}

if ($thissurvey['nokeyboard']=='Y')
{
vIncludeKeypad();
$kpclass = "num-keypad";
}
else
{
$kpclass = "";
}

if (trim($qidattributes['answer_width'])!='')
{
$answerwidth=$qidattributes['answer_width'];
Expand Down Expand Up @@ -6783,7 +6793,7 @@ function do_array_multiflexi($ia)
{
$sSeperator = getRadixPointData($thissurvey['surveyls_numberformat']);
$sSeperator = $sSeperator['seperator'];
$answer .= "\t<input type='text' class=\"multiflexitext\" name=\"$myfname2\" id=\"answer{$myfname2}\" maxlength=\"{$maxsize}\" size=5 title=\""
$answer .= "\t<input type='text' class=\"multiflexitext $kpclass\" name=\"$myfname2\" id=\"answer{$myfname2}\" maxlength=\"{$maxsize}\" size=5 title=\""
. html_escape($labelans[$thiskey]).'"'
. " onchange=\"$checkconditionFunction(this.value, this.name, this.type)\" onkeypress=\"return goodchars(event,'0123456789$sSeperator')\""
. " value=\"";
Expand Down

0 comments on commit 4f709c5

Please sign in to comment.