Commit 6c3f2ef2 authored by Steven Wittens's avatar Steven Wittens
Browse files

Fix JS upload after theme_button change.

parent d351a221
...@@ -798,7 +798,7 @@ function _upload_form($node) { ...@@ -798,7 +798,7 @@ function _upload_form($node) {
'#suffix' => '</div>', '#suffix' => '</div>',
); );
$form['new']['upload'] = array('#type' => 'file', '#title' => t('Attach new file'), '#size' => 40); $form['new']['upload'] = array('#type' => 'file', '#title' => t('Attach new file'), '#size' => 40);
$form['new']['attach'] = array('#type' => 'button', '#value' => t('Attach'), '#name' => 'attach', '#attributes' => array('id' => 'attach-button')); $form['new']['attach'] = array('#type' => 'button', '#value' => t('Attach'), '#name' => 'attach', '#id' => 'attach-button');
// The class triggers the js upload behaviour. // The class triggers the js upload behaviour.
$form['attach-url'] = array('#type' => 'hidden', '#value' => url('upload/js', NULL, NULL, TRUE), '#attributes' => array('class' => 'upload')); $form['attach-url'] = array('#type' => 'hidden', '#value' => url('upload/js', NULL, NULL, TRUE), '#attributes' => array('class' => 'upload'));
} }
......
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