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) {
$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
// containers.
if (!isset($element['#attributes']['class'])) {
......
......@@ -196,6 +196,8 @@ function node_filter_form() {
$form['filters']['actions']['reset'] = array('#type' => 'submit', '#value' => t('Reset'));
}
drupal_add_js('misc/form.js');
return $form;
}
......
......@@ -279,11 +279,6 @@ function system_element_info() {
'#method' => 'post',
'#action' => request_uri(),
'#theme_wrappers' => array('form'),
'#attached' => array(
'js' => array(
'misc/form.js' => array('weight' => JS_LIBRARY + 1),
),
),
);
$types['page'] = array(
'#show_messages' => TRUE,
......
......@@ -92,6 +92,8 @@ function user_filter_form() {
);
}
drupal_add_js('misc/form.js');
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