Skip to content

Commit

Permalink
Fixed issue #07967: Without javascript there are still present button…
Browse files Browse the repository at this point in the history
… that don't work in the survey : back, clear the survey, send it incomplete.

Dev: Fixed a few paths to /styles-public/
  • Loading branch information
tpartner committed Sep 22, 2013
1 parent 0be25ce commit 79f112c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/qanda_helper.php
Expand Up @@ -980,7 +980,7 @@ function do_5pointchoice($ia)
$inputnames[]=$ia[1];

if($aQuestionAttributes['slider_rating']==1){
Yii::app()->getClientScript()->registerCssFile('star-rating.css');
Yii::app()->getClientScript()->registerCssFile(Yii::app()->getConfig('publicstyleurl') . 'star-rating.css');
Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts')."star-rating.js");
$answer .= "<script type='text/javascript'>\n"
. " <!--\n"
Expand All @@ -990,7 +990,7 @@ function do_5pointchoice($ia)
}

if($aQuestionAttributes['slider_rating']==2){
Yii::app()->getClientScript()->registerCssFile('slider-rating.css');
Yii::app()->getClientScript()->registerCssFile(Yii::app()->getConfig('publicstyleurl') . 'slider-rating.css');
Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts')."slider-rating.js");
$answer .= "<script type='text/javascript'>\n"
. " <!--\n"
Expand Down Expand Up @@ -3272,7 +3272,7 @@ function do_multiplenumeric($ia)
if($aQuestionAttributes['slider_layout']==1)
{
Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts')."numeric-slider.js");
Yii::app()->getClientScript()->registerCssFile("numeric-slider.css");
Yii::app()->getClientScript()->registerCssFile(Yii::app()->getConfig('publicstyleurl') . "numeric-slider.css");
if ($slider_default != "")
{
$slider_startvalue = $slider_default;
Expand Down

0 comments on commit 79f112c

Please sign in to comment.