mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Prevent CMS submission on disabled buttons (#7928)
Thanks @jbarrios for triggering this fix
This commit is contained in:
parent
c782e00178
commit
b38cb39256
@ -205,7 +205,9 @@
|
||||
* Function: onclick
|
||||
*/
|
||||
onclick: function(e) {
|
||||
if(!this.is(':disabled')) {
|
||||
this.parents('form').trigger('submit', [this]);
|
||||
}
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user