Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
ajaxsubmitfix.patch | 731 bytes | ronnbot |
Comments
Comment #1
nedjoThanks! I'll apply this soon.
Comment #2
nedjoSome of this was already applied, I applied the rest.