rails/jquery-ujs — pull request #215 by sskirby (2011-10-21 22:50:12+00:00)
Title: Cancelling a remote link in the ajax:before event now re-enables the link

Currently, cancelling a link with data-remote=true in the ajax:before event doesn't re-enable the link. We need this because our application makes heavy use of checking for particular pre-conditions before executing an AJAX action. We can't just use confirm because we don't even want a dialog to appear if the pre-conditions are met.

We ran into this issue with the ajax:beforeSend event as well, but the fix isn't quite as straightforward.

Cheers