Nice handy module!
Was about to try it to work on a few webforms (http://drupal.org/project/webform) in modals and I noticed the modal was not being closed. Looking into the code I figured out the reason, which is that the webform form action strips (very briefly confirmed this on webform's code) all the URL parameters from the form action, thus, making all the automodalClose, etc. variables not available on form submissions as $_GET variables.
This might be a problem on other modules/issues with the same approach.
I wondered why webform was striping those out but I come up with a nice solution by doing something to this module.
Basically I am adding all the automodal* $_GET variables into the altered form as hidden elements and then, on every place in which automodal was looking for it's variables in $_GET I am also looking them in $_POST, thus, allowing these cases to work properly.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | automodal-webform-support-1037472-0.patch | 2.37 KB | hanoii |
Comments
Comment #1
hanoiiComment #2
dsnopekI think this might be fixed by #1698358: When form in child uses AHAH, automodalClose doesn't work (patch included!) which was just committed. Can you try the latest Git and let me know if it works for you?