From 6bbc4d7bf16864eec4b26be731c0026d9d893a13 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Wed, 30 Aug 2006 18:56:31 +0000 Subject: - Fix upload.js after edit[] patch (note: uploading is still broken, with or without JS) --- modules/upload/upload.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/upload') 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' => '', ); $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 -- cgit v1.2.3