Skip to content
Snippets Groups Projects
Commit cef051b4 authored by falcon's avatar falcon
Browse files

#652198 reported by biocomp.pat: input format fieldset moved

parent 1ee7639f
No related branches found
No related tags found
No related merge requests found
......@@ -432,6 +432,11 @@ class MultichoiceQuestion extends QuizQuestion {
'#type' => 'markup',
'#value' => t('Your settings will be remembered.'),
);
$form['alternatives']['input_format_all'] = array(
'#type' => 'markup',
'#value' => '<DIV id="input-all-ph"></DIV>',
);
$form['alternatives']['#theme'][] = 'multichoice_creation_form';
$i = 0;
......
......@@ -12,6 +12,7 @@ Drupal.behaviors.multichoiceBehavior = function(context) {
var defaultValue = $('.multichoice_filter:first :radio[checked=1]').val();
$('.multichoice_filter:not(:first):not(.multichoiceBehavior-processed) :radio[value='+defaultValue+']').click().change().addClass('multichoiceBehavior-processed');
$('.multichoice_filter:not(:first)').hide().addClass('multichoiceStayHidden');
$('.multichoice_filter:first').insertAfter('#input-all-ph');
var oldToggle = Drupal.toggleFieldset;
Drupal.toggleFieldset = function(context) {
oldToggle(context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment