Skip to content

Not getting the ajax:remotipartComplete event #198

@glappen

Description

@glappen

Hello,

I am trying this on latest version of Rails 5 (I just found out it was supported, so I got pretty far despite that!).

I am not getting the ajax:remotipartComplete event though when l listen for it like this:

 $('body').on('ajax:remotipartComplete', '.edit_question', function(e, data) {                                                                                                                                   
     $(window.activeQuestionDiv).replaceWith(data);                                                                                                                                                                
     $('#question-modal').modal('hide');                                                                                                                                                                           
  });

I set breakpoing in jquery.remotipart.js and this line does execute:

$.rails.fire(form, 'ajax:remotipartComplete', [data]);

But I can never receive that event, even if I register a listener directly on the form. Any ideas why? Getting ready to give up and resort to writing my own js to use FormData...thanks!

Greg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions