Skip to content

Commit

Permalink
Fixed issue #11851: Unstyled HTML when editing default answer options…
Browse files Browse the repository at this point in the history
… for yes-no question
  • Loading branch information
olleharstedt authored and lacrioque committed Nov 9, 2016
1 parent ee54324 commit 82a52aa
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -66,15 +66,14 @@ public function run()

$aHtmlOptions = array(
'empty' => gT('<No default value>'),
'class' => $sElement_id,
'class' => $sElement_id . ' form-control',
'onchange' => '// show EM Value Field
if ($(this).val() == "EM"){
$("#"+$(this).closest("select").attr("id")+ "_EM").removeClass("hide");
}else{
$("#"+$(this).closest("select").attr("id")+ "_EM").addClass("hide");} '
);

echo '<li>';
echo CHtml::dropDownList($sElement_id, $select, $aList, $aHtmlOptions);

// textfield preparation
Expand All @@ -87,7 +86,6 @@ public function run()
'class' => $sEmfield_css_class,
'width' => 100
));
echo '</li>';
}
}
}

0 comments on commit 82a52aa

Please sign in to comment.