Skip to content

Commit

Permalink
Dev previous commit broke Equation question type
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@12406 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
tmswhite committed Feb 8, 2012
1 parent 1445902 commit 2b2d541
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/eval/LimeExpressionManager.php
Expand Up @@ -5178,6 +5178,7 @@ static function GetRelevanceAndTailoringJavaScript()
if ($arg['type'] == '*')
{
$relParts[] = " // Write value from the question into the answer field\n";
$jsResultVar = $LEM->em->GetJsVarFor($arg['jsResultVar']);
$relParts[] = " $('#" . substr($jsResultVar,1,-1) . "').val(escape(jQuery.trim(LEMstrip_tags($('#question" . $arg['qid'] . " .questiontext').find('span').next().next().html()))).replace(/%20/g,' '));\n";
}
$relParts[] = " if ($('#relevance" . $arg['qid'] . "').val()!='1') { relChange" . $arg['qid'] . "=true; }\n";
Expand Down

0 comments on commit 2b2d541

Please sign in to comment.