If you go to http://ajax-register.drupalace.ru/ and click "Log in" without filling in any information, the block styling disappears.
This is because the wrapper ID used by the #ajax callback wraps both the block AND the form, not just the form.
Here is an attempt to place the wrapper between the block and the form, since #prefix and #suffix run after all theme wrappers.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | ajax_register-block-wrapper-1928252-3.patch | 1.78 KB | spleshka |
| #1 | ajax_register-block-wrapper-1928252-1.patch | 1.95 KB | spleshka |
| ajax_register-block-wrapper.patch | 1.69 KB | tim.plunkett |
Comments
Comment #1
spleshkaRe-rolled patch for the latest dev release. Also made minor changes. What do you think about it?
Comment #2
tim.plunkettHere you're reverting the addition of drupal_html_id(). If you add it back into the top function, you cannot use it in the bottom function. Perhaps the theme function should retrieve the correct ID from the submit button's ajax wrapper.
Comment #3
spleshkaYou are right. New patch attached.
Comment #4
tim.plunkettLooks good to me!
Comment #5
spleshkaThanks for your review and report! Commited to 7.x-4.x.
Comment #6
spleshkaChange issue status