Skip to content

Remote Forms: ajax:complete event is not firing #268

@dmagliola

Description

@dmagliola

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions