mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +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:
@@ -373,6 +373,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
if($button.attr('data-disable') == 'true')
|
||||
{
|
||||
$button.addClass('disabled');
|
||||
$button.prop("disabled", true);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user