mirror of
https://github.com/e107inc/e107.git
synced 2025-06-03 17:34:59 +02:00
Truly disable a button on FormSubmit
We need to add attribute disabled to the button to truly disable it, otherwise the click event is fired up again and again causing form submissions
This commit is contained in:
parent
3e1feac04d
commit
bcce574e79
@ -373,6 +373,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
if($button.attr('data-disable') == 'true')
|
||||
{
|
||||
$button.addClass('disabled');
|
||||
$button.prop("disabled", true);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user