From 11d2e62e67e4df549e2be432201843a2dc8b67de Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 13 May 2022 14:38:55 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02504=20N=C2=B03169=20N=C2=B05102=20Corre?= =?UTF-8?q?ctly=20disable=20authentication=20button=20for=202.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/pages/backoffice/oauth/Wizard.ready.js.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/pages/backoffice/oauth/Wizard.ready.js.twig b/templates/pages/backoffice/oauth/Wizard.ready.js.twig index b0362f346..b6ccf248a 100644 --- a/templates/pages/backoffice/oauth/Wizard.ready.js.twig +++ b/templates/pages/backoffice/oauth/Wizard.ready.js.twig @@ -23,7 +23,7 @@ const oOnOauthSuccess = function (event){ new Function(item)(); }); } - $('.ibo-oauth-wizard--form--submit').trigger('leave_loading_state.button.itop'); + $('.ibo-oauth-wizard--form--submit').prop('disabled', false); } ); } @@ -71,7 +71,7 @@ const oOpenSignInWindow = function (url, name){ // Function used when the form is submitted const oOnFormSubmit = function(){ - $('.ibo-oauth-wizard--form--submit').trigger('enter_loading_state.button.itop'); + $('.ibo-oauth-wizard--form--submit').prop('disabled', true); $.post( '{{ sAjaxUri }}', { @@ -88,7 +88,7 @@ const oOnFormSubmit = function(){ oOpenSignInWindow(oData.data.authorization_url, 'OAuth authorization') } else{ - $('.ibo-oauth-wizard--form--submit').trigger('leave_loading_state.button.itop'); + $('.ibo-oauth-wizard--form--submit').prop('disabled', false); } } );