Closed (fixed)
Project:
Quiz
Version:
6.x-4.x-dev
Component:
Code - Quiz module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2010 at 13:03 UTC
Updated:
25 Jun 2010 at 05:43 UTC
Hi
would you please add own class for each fieldset in create quiz form?
I would like to change color of backgrounds for various fieldset and hide whole "Multiple takes" fieldset (I didn't need this), but now I can't target some concrete fieldset, because all of them are without css class attribute.
thanks
Igor
Comments
Comment #1
falcon commentedI though Drupal already did this, but obviously it didn't. I added id attributes to all the fieldsets. (Not classes because each fieldset will always be unique AFAIK. id's have better javascript and css performance)
This kinda is a feature, but there is no way this can cause any other bugs AFAIK.
Thanks for reporting!
Comment #2
igorik commentedHi
Fieldset "Multiple takes" is still without id.
It is in quiz.module on the line 936
$form['taking']['multiple_takes'] = array(
'#type' => 'fieldset',
'#title' => t('Multiple takes'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
It could be
$form['taking']['multiple_takes'] = array(
'#type' => 'fieldset',
'#title' => t('Multiple takes'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#attributes' => array('id' => 'multiple-takes'),
);
thanks
Igor
Comment #3
falcon commentedSorry about that. Fixed it now. Thanks!