forked from leppert/remotipart
-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
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
Labels
No labels