vendor/assets/javascripts/jquery.remotipart.js in remotipart-1.1.1 vs vendor/assets/javascripts/jquery.remotipart.js in remotipart-1.2.0
- old
+ new
@@ -71,13 +71,9 @@
$(document).on('ajax:aborted:file', 'form', function(){
var form = $(this);
remotipart.setup(form);
- // If browser does not support submit bubbling, then this live-binding will be called before direct
- // bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
- if (!$.support.submitBubbles && $().jquery < '1.7' && $.rails.callFormSubmitBindings(form) === false) return $.rails.stopEverything(e);
-
// Manually call jquery-ujs remote call so that it can setup form and settings as usual,
// and trigger the `ajax:beforeSend` callback to which remotipart binds functionality.
$.rails.handleRemote(form);
return false;
});