Closed nadar closed 5 years ago
Some browser allow double click on submit buttons, therefore sth like this could be implemented as helper or widget:
$('form').on('beforeSubmit', function (e) { $(':input[type=\"submit\"]').prop('disabled', true).addClass('disabled'); $('#loader').fadeIn(); return true; });
Some browser allow double click on submit buttons, therefore sth like this could be implemented as helper or widget: