Commit ad1fba79 authored by Chenu Denis's avatar Chenu Denis

[fix] Better name

parent 6a73268e
......@@ -8,7 +8,7 @@
$(function() {
$("[data-selectQuestionBy='simple']").select2({
theme: "bootstrap",
dropdownParent: $('.answer-item')
//~ dropdownParent: $('.answer-item')
});
$("[data-selectQuestionBy='multiple']").select2({
theme: "bootstrap",
......
......@@ -80,7 +80,7 @@ class selectQuestionBy extends \ls\pluginmanager\PluginBase
),
'selectQuestionByForceOne'=>array(
'types'=>'T',
'category'=>gT('OECD'),
'category'=>gT('Drop down'),
'sortorder'=>140,
'inputtype'=>'switch',
'default'=>0,
......@@ -132,7 +132,7 @@ class selectQuestionBy extends \ls\pluginmanager\PluginBase
);
$answer=\CHtml::tag("div",array('class'=>'answer-item select-item dropdown-item selectBySurveyQuestion-item'),$answer);
$oEvent->set('answers',$answer);
Yii::app()->getClientScript()->registerPackage('selectBySurveyQuestion');
Yii::app()->getClientScript()->registerPackage('selectQuestionBy');
break;
case 'multiple':
$aActualValue=explode(',',$actualValue);
......@@ -221,7 +221,7 @@ class selectQuestionBy extends \ls\pluginmanager\PluginBase
/* Find if we need categories ? */
$oSeparator=QuestionAttribute::model()->find("qid=:qid and attribute='category_separator'",array(":qid"=>$oQuestion->qid));
if(!$oSeparator) {
return array(\CHtml::listData($oAnswers,'code','text'),array());
return array(\CHtml::listData($oAnswers,'code','answer'),array());
}
$separator=trim($oSeparator->value);
$aCategories=array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment