diff --git a/includes/ajax.inc b/includes/ajax.inc index e9ef9691a5ac9239485f02f4d7a62816d57ebfe4..67f507a6c9aaac2ceee4b6ee0aca6e2f44d8f71c 100644 --- a/includes/ajax.inc +++ b/includes/ajax.inc @@ -363,7 +363,7 @@ function ajax_command_alert($text) { /** * Creates a Drupal AJAX 'insert/replaceWith' command. * - * The 'insert/replace' command instructs the client to use jQuery's + * The 'insert/replaceWith' command instructs the client to use jQuery's * replaceWith() method to replace each element matched matched by the given * selector with the given HTML. * diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 6c044b558856443f9bd89e8ea912d6d950d0ecea..f8d3b37c09f61fefa5ffc5c45a3d78e3cb2e8630 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -378,8 +378,6 @@ function _poll_choice_form($key, $chid = NULL, $value = '', $votes = 0, $weight function poll_choice_js($form, $form_state) { $choice_form = $form['choice_wrapper']['choice']; - // Prevent duplicate wrappers. - unset($choice_form['#prefix'], $choice_form['#suffix']); return theme('status_messages') . drupal_render($choice_form); } diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 5682c6cf06f0dff0ac6c579ffe7ffd0ec5870f4c..e9fd856d5a16e22459299ca535b735d9c7662c8e 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' => '