Skip to content

Commit 0a2e717

Browse files
ycerutojaviereguiluz
authored andcommitted
disable submit button on submit.
1 parent fecb034 commit 0a2e717

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/Resources/assets/js/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
.off('click', '#btnYes')
2424
.on('click', '#btnYes', function () {
2525
$confirm.data('result', 'yes');
26+
$form.find('input[type="submit"]').attr('disabled', 'disabled');
2627
$form.submit();
2728
})
2829
.modal('show');

0 commit comments

Comments
 (0)