I recently made use of a button with #type image_button and the ajax module didn't recognize it as a submit button.
Attached is a patch to fix this.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | ajax_type=image.patch | 425 bytes | Maxkupr |
| #4 | ajax_type=image.patch | 418 bytes | Maxkupr |
| ajax_image_button_fix.patch | 559 bytes | voxpelli |
Comments
Comment #1
iamjon commentedHi,
I tried your patch it didn't work.
Can you post your your form api that you used to add the image. Maybe I didn't override the button properly.
Comment #2
iamjon commentedI lied it works.
Comment #3
voxpelli commentedIf it works - then we can perhaps set this as reviewed by the community? It's such a simple patch that it shouldn't need a massive review
Comment #4
Maxkupr commentedwhat about adding handler in ajax.js?
Comment #5
Maxkupr commentedsorry, just discard previous patch. here is correct one
Comment #6
brendoncrawford commentedMaximus, patch has been applied. Thanks for your help. Should be available in dev release.
Comment #7
brendoncrawford commented