From 6c9127ac4fd6da20ff051e10327e7ff6023a09a8 Mon Sep 17 00:00:00 2001 From: Rosen Zahariev Date: Thu, 11 May 2023 12:52:57 +0300 Subject: [PATCH] Fixing javascript issue causing Action Modal Form not to save --- src/Actions/Interactor/Form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Actions/Interactor/Form.php b/src/Actions/Interactor/Form.php index a101a6f3b4..6de4e2673b 100644 --- a/src/Actions/Interactor/Form.php +++ b/src/Actions/Interactor/Form.php @@ -526,9 +526,9 @@ public function addScript() Object.assign(data, {$parameters}); {$this->action->actionScript()} $('#'+modalId).modal('show'); - $(':submit', '#'+modalId).button('reset'); + $('.submit', '#'+modalId).button('reset'); $('#'+modalId+' form').off('submit').on('submit', function (e) { - $(':submit', e.target).button('loading'); + $('.submit', e.target).button('loading'); e.preventDefault(); var form = this; {$this->buildActionPromise()}