Commit 47b8bec8 authored by Dries's avatar Dries

- Patch #749748 by mavimo, Dave Reid: contact and comment modules do not...

- Patch #749748 by mavimo, Dave Reid: contact and comment modules do not prefill with user info from cookie.
parent 7bf7c1f5
......@@ -2852,9 +2852,6 @@ 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,8 +196,6 @@ function node_filter_form() {
$form['filters']['actions']['reset'] = array('#type' => 'submit', '#value' => t('Reset'));
}
drupal_add_js('misc/form.js');
return $form;
}
......
......@@ -279,6 +279,11 @@ 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,8 +92,6 @@ 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