summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-29 16:30:14 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-29 16:30:14 +0000
commitd4d43f11eacc7f566d612a19c176a8c4ac867df6 (patch)
tree5b139e8e33ad60c382ce74f6b54fd721fdbd1acf
parent9d7f90f11b8fe2c8b4d176c37b6830c018710f12 (diff)
downloadbrdo-d4d43f11eacc7f566d612a19c176a8c4ac867df6.tar.gz
brdo-d4d43f11eacc7f566d612a19c176a8c4ac867df6.tar.bz2
#560944 by seutje: Fixed collapsible fieldsets in Garland.
-rw-r--r--includes/form.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 0e6221ce7..6bde787aa 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -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;
}