Commit d4d43f11 authored by webchick's avatar webchick

#560944 by seutje: Fixed collapsible fieldsets in Garland.

parent 9d7f90f1
......@@ -1625,7 +1625,6 @@ function form_get_options($element, $key) {
*/
function theme_fieldset($element) {
if (!empty($element['#collapsible'])) {
$element['#attached_js']['misc/collapse.js'] = array();
if (!isset($element['#attributes']['class'])) {
$element['#attributes']['class'] = array();
......@@ -2247,6 +2246,9 @@ function form_process_fieldset(&$element, &$form_state) {
// Contains form element summary functionalities.
$element['#attached_js']['misc/form.js'] = array('weight' => JS_LIBRARY + 1);
if (!empty($element['#collapsible'])) {
$element['#attached_js']['misc/collapse.js'] = array();
}
return $element;
}
......
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