Commit 893fba43 authored by webchick's avatar webchick

Roll-back of #749748. This broke JavaScript on node add forms, and probably elsewhere.

parent d38b5b80
...@@ -2852,6 +2852,9 @@ function form_process_fieldset(&$element, &$form_state) { ...@@ -2852,6 +2852,9 @@ function form_process_fieldset(&$element, &$form_state) {
$form_state['groups'][$group][] = &$element; $form_state['groups'][$group][] = &$element;
} }
// Contains form element summary functionalities.
$element['#attached']['js']['misc/form.js'] = array('weight' => JS_LIBRARY + 1);
// The .form-wrapper class is required for #states to treat fieldsets like // The .form-wrapper class is required for #states to treat fieldsets like
// containers. // containers.
if (!isset($element['#attributes']['class'])) { if (!isset($element['#attributes']['class'])) {
......
...@@ -196,6 +196,8 @@ function node_filter_form() { ...@@ -196,6 +196,8 @@ function node_filter_form() {
$form['filters']['actions']['reset'] = array('#type' => 'submit', '#value' => t('Reset')); $form['filters']['actions']['reset'] = array('#type' => 'submit', '#value' => t('Reset'));
} }
drupal_add_js('misc/form.js');
return $form; return $form;
} }
......
...@@ -279,11 +279,6 @@ function system_element_info() { ...@@ -279,11 +279,6 @@ function system_element_info() {
'#method' => 'post', '#method' => 'post',
'#action' => request_uri(), '#action' => request_uri(),
'#theme_wrappers' => array('form'), '#theme_wrappers' => array('form'),
'#attached' => array(
'js' => array(
'misc/form.js' => array('weight' => JS_LIBRARY + 1),
),
),
); );
$types['page'] = array( $types['page'] = array(
'#show_messages' => TRUE, '#show_messages' => TRUE,
......
...@@ -92,6 +92,8 @@ function user_filter_form() { ...@@ -92,6 +92,8 @@ function user_filter_form() {
); );
} }
drupal_add_js('misc/form.js');
return $form; return $form;
} }
......
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