call. jQuery already provides beforeSend callback which jquery-ujs uses to provide ajax:beforeSend callback. Anything can be done in ajax:before can also be done in ajax:beforeSend callback. I have been attempting to get the callbacks in jquery-ujs close to jQuery and this was the last hurdle.
jquery-ujs fires ajax:loading for beforeSend. A few times I have been confused if loading is fired after the request has already been made or after. I guess the best solution is to be as close to jQuery as possible. No need to invent new names. This patch changes callback named ajax:loading to ajax:beforeSend.
Signed-off-by: Neeraj Singh <firstname.lastname@example.org>
….2 . * If you are using one of those versions then use branch v1.4 . * All test files have been updated to reflect the same .
… of jquery
…ng of all rails jquery magic." This reverts commit a9a7b20.
…rsion of jQuery
…l rails jquery magic.
This also fixes the two tests because since 'vendor/jquery-1.4.2.js' was removed, neither test would pass because jQuery wasn't actually present for the tests sadly. Now, the index page embeds the jquery version into the request URL, so the two iframes load the same version as the one currently being tested