summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-01-15 11:22:34 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-01-15 11:22:34 +0000
commit6c3f2ef2cde8b9e9962d236ba8ada1bb56311ddd (patch)
tree0e8f42fac8be4f4ca4206fc35b92111b0f17909c
parentd351a2218ab4e6f8ec44b2772912ba034943e8e6 (diff)
downloadbrdo-6c3f2ef2cde8b9e9962d236ba8ada1bb56311ddd.tar.gz
brdo-6c3f2ef2cde8b9e9962d236ba8ada1bb56311ddd.tar.bz2
Fix JS upload after theme_button change.
-rw-r--r--modules/upload/upload.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 95adadbba..07187ee3b 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -798,7 +798,7 @@ function _upload_form($node) {
'#suffix' => '</div>',
);
$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.
$form['attach-url'] = array('#type' => 'hidden', '#value' => url('upload/js', NULL, NULL, TRUE), '#attributes' => array('class' => 'upload'));
}