diff --git a/src/Actions/Interactor/Form.php b/src/Actions/Interactor/Form.php index a767fa6aae..69aea6cf69 100644 --- a/src/Actions/Interactor/Form.php +++ b/src/Actions/Interactor/Form.php @@ -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()}