vendor/assets/javascripts/jquery.remotipart.js in remotipart-1.0.5 vs vendor/assets/javascripts/jquery.remotipart.js in remotipart-1.1.0
- old
+ new
@@ -37,9 +37,10 @@
// Allow remotipartSubmit to be cancelled if needed
if ($.rails.fire(form, 'ajax:remotipartSubmit', [xhr, settings])) {
// Second verse, same as the first
$.rails.ajax(settings);
+ setTimeout(function(){ $.rails.disableFormElements(form); }, 20);
}
//Run cleanup
remotipart.teardown(form);