Skip to content

Commit

Permalink
Dev: fixed sliders in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Oct 30, 2017
1 parent a0cf288 commit 2da6aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/qanda_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3244,7 +3244,7 @@ function do_multiplenumeric($ia)
$sliderTranslation=array(
'help'=>gT('Please click and drag the slider handles to enter your answer.')
);
App()->getClientScript()->registerScript("sliderTranslation","var sliderTranslation=".json_encode($sliderTranslation).";\n",CClientScript::POS_HEAD);
App()->getClientScript()->registerScript("sliderTranslation","var sliderTranslation=".json_encode($sliderTranslation).";\n",CClientScript::POS_BEGIN);
App()->getClientScript()->registerPackage("question-numeric-slider");
if($slider_handle == 'custom'){/* unsure we still need it : in aJsonOptions : must choose the best */
App()->getClientScript()->registerCss("cssNumericSlider{$ia[0]}","#question{$ia[0]} .slider-handle.custom::before{ content: '\\{$slider_custom_handle}'};");
Expand Down

0 comments on commit 2da6aa0

Please sign in to comment.