diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-21 00:35:31 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-21 00:35:31 +0000 |
commit | 6df0d7edb6c650616e805a388389bb888a790221 (patch) | |
tree | 9015cb425ca7bbea56dc8a59c2a765d30de6d9d8 /modules/upload/upload.module | |
parent | db61b2603918d582afad82b8036fac7f5240a627 (diff) | |
download | brdo-6df0d7edb6c650616e805a388389bb888a790221.tar.gz brdo-6df0d7edb6c650616e805a388389bb888a790221.tar.bz2 |
#552520 by merlinofchaos: Fixed AJAX wrappers on poll/upload modules.
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r-- | modules/upload/upload.module | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 5682c6cf0..e9fd856d5 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -236,10 +236,7 @@ function upload_form_alter(&$form, $form_state, $form_id) { ); // Wrapper for fieldset contents (used by ajax.js). - $form['attachments']['wrapper'] = array( - '#prefix' => '<div id="attach-wrapper">', - '#suffix' => '</div>', - ); + $form['attachments']['wrapper'] = array(); // Make sure necessary directories for upload.module exist and are // writable before displaying the attachment form. @@ -533,6 +530,8 @@ function _upload_form($node) { $form = array( '#theme' => 'upload_form_new', '#cache' => TRUE, + '#prefix' => '<div id="attach-wrapper">', + '#suffix' => '</div>', ); if (!empty($node->files) && is_array($node->files)) { |