FIX 7856 If the submit button is disabled, to perform the ajax request

This commit is contained in:
jean 2012-09-11 15:00:36 +12:00
parent 697d3dbd69
commit 100aa178b0

View File

@ -81,6 +81,10 @@
// default to first button
var button = this.find(':submit:first');
if (button.is(':disabled')){
e.preventDefault();
return;
}
button.addClass('loading');
// collect data and submit the form