diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-08-30 18:56:31 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-08-30 18:56:31 +0000 |
commit | 6bbc4d7bf16864eec4b26be731c0026d9d893a13 (patch) | |
tree | 0bac96afc39a089af1298198be902d47e7c782bd /modules/upload | |
parent | 5dc27bcb93db939584576194414e33d330cb7b38 (diff) | |
download | brdo-6bbc4d7bf16864eec4b26be731c0026d9d893a13.tar.gz brdo-6bbc4d7bf16864eec4b26be731c0026d9d893a13.tar.bz2 |
- Fix upload.js after edit[] patch (note: uploading is still broken, with or without JS)
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 481e177dc..d0ed472b2 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -801,9 +801,9 @@ 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')); + $form['new']['attach'] = array('#type' => 'button', '#value' => t('Attach'), '#name' => 'attach', '#attributes' => array('id' => 'attach-button')); // The class triggers the js upload behaviour. - $form['attach'] = 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')); } // Needed for JS |