Skip to content

Commit

Permalink
Dev: fixed some small http issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Jul 30, 2018
1 parent 2b29219 commit 47fabd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_core_helper.php
Expand Up @@ -1341,7 +1341,7 @@ public function GetPrettyPrintString()
$messages[] = $funcInfo[2];
$messages[] = $funcInfo[3];
}
$stringParts[] = "<span title='".implode('; ', $messages)."' class='em-function' >";
$stringParts[] = "<span title='".preg_replace('/\'/', '"', implode('; ', $messages))."' class='em-function' >";
$stringParts[] = $token[0];
$stringParts[] = "</span>";
} else {
Expand Down
11 changes: 8 additions & 3 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -7283,7 +7283,12 @@ public static function GetRelevanceAndTailoringJavaScript($bReturnArray=false)

App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts')."expressions/em_javascript.js" );
/* Call the function when trigerring event */
App()->getClientScript()->registerScript("triggerEmClassChange","triggerEmClassChange();\n",CClientScript::POS_END);
App()->getClientScript()->registerScript("triggerEmClassChange","
try{
triggerEmClassChange();
} catch(e) {
console.ls.warn('triggerEmClassChange could not be run. Is survey.js correctly loaded?');
}\n",LSYii_ClientScript::POS_END);

if (!$bReturnArray) {
$jsParts[] = "\n<script type='text/javascript'>\n<!--\n";
Expand Down Expand Up @@ -7588,8 +7593,8 @@ public static function GetRelevanceAndTailoringJavaScript($bReturnArray=false)
if ($validationEqn == '') {
continue;
}

$LEM->em->ProcessBooleanExpression($validationEqn,$arg['gseq'],$LEM->questionId2questionSeq[$arg['qid']]);
$relQuestionSeq = isset($LEM->questionId2questionSeq[$arg['qid']]) ? $LEM->questionId2questionSeq[$arg['qid']] : null;
$LEM->em->ProcessBooleanExpression($validationEqn,$arg['gseq'],$relQuestionSeq);
$_vars = $LEM->em->GetJSVarsUsed();
$allJsVarsUsed = array_merge($allJsVarsUsed,$_vars);
$valJsVarsUsed = array_merge($valJsVarsUsed,$_vars);
Expand Down

0 comments on commit 47fabd0

Please sign in to comment.