JS fixes
ronn abueg - September 9, 2009 - 19:41
| Project: | Ajax submit |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Jump to:
Description
Attached a patch on ajaxsubmit.js that does the following:
- remove trailing ',' (comma) in options array, which breaks in older browsers like IE6
- update attribute selector: '[@name=X' (which is deprecated) has been changed to '[name="X"'
- also added form element error highlighting on sub elements; i.e., if you have a date form element consisting of three text fields, all three text field are highlighted if a form set error is applied on the date just like how it works if it wasn't ajax submitted.
Hope this patch is useful to you.
I'm using this patch on a deployed site w/o experiencing any issues.
| Attachment | Size |
|---|---|
| ajaxsubmitfix.patch | 731 bytes |

#1
Thanks! I'll apply this soon.