mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX 7856 If the submit button is disabled, to perform the ajax request
This commit is contained in:
parent
697d3dbd69
commit
100aa178b0
@ -81,6 +81,10 @@
|
|||||||
|
|
||||||
// default to first button
|
// default to first button
|
||||||
var button = this.find(':submit:first');
|
var button = this.find(':submit:first');
|
||||||
|
if (button.is(':disabled')){
|
||||||
|
e.preventDefault();
|
||||||
|
return;
|
||||||
|
}
|
||||||
button.addClass('loading');
|
button.addClass('loading');
|
||||||
|
|
||||||
// collect data and submit the form
|
// collect data and submit the form
|
||||||
|
Loading…
Reference in New Issue
Block a user