-
Notifications
You must be signed in to change notification settings - Fork 509
Closed
Description
When binding to the ajax:* events of a remote form, ajax:complete isn't firing.
ajax:before, ajax:error, ajax:success all DO fire, but ajax:complete doesn't.
Sample code:
$(this).bind("ajax:before", function(){
// fires
}).bind("ajax:success", function(){
// fires
}).bind("ajax:error", function(){
// fires
}).bind("ajax:complete", function(){
// **does not fire**
})
return this;
}
I'm currently working around this by handling both success and error, but the resulting code is not very pretty.
(Originally reported this as a Rails bug, they pointed me to post it here
rails/rails#7090 (comment) )
Metadata
Metadata
Assignees
Labels
No labels