Commit ee08b9d9 authored by quicksketch's avatar quicksketch

#494666 by gordon: Remove extra #process attributes from upload and remove buttons.

parent 17b5e95f
......@@ -254,7 +254,6 @@ function filefield_widget_process($element, $edit, &$form_state, $form) {
$element['filefield_upload'] = array(
'#type' => 'submit',
'#value' => t('Upload'),
'#process' => array('form_expand_ahah'),
'#submit' => array('node_form_submit_build_node'),
'#ahah' => array( // with JavaScript
'path' => 'filefield/ahah/'. $element['#type_name'] .'/'. $element['#field_name'] .'/'. $element['#delta'],
......@@ -276,7 +275,6 @@ function filefield_widget_process($element, $edit, &$form_state, $form) {
'#name' => implode('_', $element['#parents']) .'_filefield_remove',
'#type' => 'submit',
'#value' => t('Remove'),
'#process' => array('form_expand_ahah'),
'#submit' => array('node_form_submit_build_node'),
'#ahah' => array( // with JavaScript
'path' => 'filefield/ahah/'. $element['#type_name'] .'/'. $element['#field_name'] .'/'. $element['#delta'],
......
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