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 <email@example.com>
….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.