The 'beforeSubmit' ajax callback is only valid for $.ajaxSubmit, not $.ajax. We need to use beforeSend in order to catch both.
Patch coming.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 697252-ajax-send.patch | 1.76 KB | merlinofchaos |
The 'beforeSubmit' ajax callback is only valid for $.ajaxSubmit, not $.ajax. We need to use beforeSend in order to catch both.
Patch coming.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 697252-ajax-send.patch | 1.76 KB | merlinofchaos |
Comments
Comment #1
merlinofchaos commentedThis patch should work in both situations. Note that any place currently using AJAX links will get a progress bar by default now; this may not be the proper behavior. We possibly should default ajax links to the throbber.
Comment #2
rfayI'll roll a test module for reviewing this.
Comment #3
rfayNote from merlinofchaos:
Comment #4
retester2010 commented#1: 697252-ajax-send.patch queued for re-testing.
Comment #6
merlinofchaos commentedIronically I submitted this again, 11 months later, not realizing that 1) I'd even done this, or 2) it'd gotten lost in 'needs work' land.
#969346: AJAX calls made with things that are not forms cannot use the throbber