mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed double form submit (in some cases button click events aren't cancelled despite returning FALSE)
This commit is contained in:
parent
c117ef58cf
commit
b836bce521
@ -181,6 +181,7 @@
|
|||||||
*/
|
*/
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
$('.cms-content').submitForm(this.parents('form'), this);
|
$('.cms-content').submitForm(this.parents('form'), this);
|
||||||
|
e.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user