diff --git a/core/js/login/grant.js b/core/js/login/grant.js index c3c3371b17..c8913f937b 100644 --- a/core/js/login/grant.js +++ b/core/js/login/grant.js @@ -1,9 +1,10 @@ -jQuery(document).ready(function() { - $('#submit').click(function (e) { - $('#submit + .submit-icon') - .removeClass('icon-confirm-white') - .addClass(OCA.Theming && OCA.Theming.inverted - ? 'icon-loading-small' - : 'icon-loading-small-dark'); +document.querySelector('form').addEventListener('submit', function(e) { + const wrapper = document.getElementById('submit-wrapper') + if (wrapper === null) { + return + } + wrapper.getElementsByClassName('icon-confirm-white').forEach(function(el) { + el.classList.remove('icon-confirm-white') + el.classList.add(OCA.Theming && OCA.Theming.inverted ? 'icon-loading-small' : 'icon-loading-small-dark') }) -}) \ No newline at end of file +}) diff --git a/core/templates/loginflow/grant.php b/core/templates/loginflow/grant.php index 017bb1f23c..2321d3714f 100644 --- a/core/templates/loginflow/grant.php +++ b/core/templates/loginflow/grant.php @@ -45,8 +45,7 @@ $urlGenerator = $_['urlGenerator'];
- -
+

diff --git a/core/templates/loginflowv2/done.php b/core/templates/loginflowv2/done.php index f86f11ee14..8b9dc3649e 100644 --- a/core/templates/loginflowv2/done.php +++ b/core/templates/loginflowv2/done.php @@ -30,7 +30,8 @@ style('core', 'login/authpicker');

t('Account connected')) ?>

- t('Your client should now be connected! You can close this window.')) ?> + t('Your client should now be connected!')) ?>
+ t('You can close this window.')) ?>


diff --git a/core/templates/loginflowv2/grant.php b/core/templates/loginflowv2/grant.php index e5991d11a2..c8ea22dca8 100644 --- a/core/templates/loginflowv2/grant.php +++ b/core/templates/loginflowv2/grant.php @@ -19,6 +19,7 @@ * */ +script('core', 'login/grant'); style('core', 'login/authpicker'); /** @var array $_ */ @@ -42,8 +43,7 @@ $urlGenerator = $_['urlGenerator'];
- -
+