Skip to content

Commit

Permalink
Merge pull request #5361 from joy2fun/fix-double-submission
Browse files Browse the repository at this point in the history
Prevent double submission
  • Loading branch information
jxlwqq committed Jul 13, 2021
2 parents 0ba9c91 + cd44620 commit c4f1738
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Actions/Interactor/Form.php
Expand Up @@ -526,7 +526,9 @@ public function addScript()
Object.assign(data, {$parameters});
{$this->action->actionScript()}
$('#'+modalId).modal('show');
$(':submit', '#'+modalId).button('reset');
$('#'+modalId+' form').off('submit').on('submit', function (e) {
$(':submit', e.target).button('loading');
e.preventDefault();
var form = this;
{$this->buildActionPromise()}
Expand Down

0 comments on commit c4f1738

Please sign in to comment.