From 97adfece819d52a700e43affb68c1411a5a04c16 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Thu, 28 Nov 2024 14:03:58 +0930 Subject: [PATCH] fix copy paste errors and get by id --- .../material/themes/material/default/selectidp-links.twig | 2 +- modules/material/themes/material/mfa/new-backup-codes.twig | 4 ++-- .../themes/material/mfa/prompt-for-mfa-webauthn.twig | 3 ++- modules/material/themes/material/profilereview/review.twig | 7 +++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/material/themes/material/default/selectidp-links.twig b/modules/material/themes/material/default/selectidp-links.twig index 9381e88..bf540b1 100644 --- a/modules/material/themes/material/default/selectidp-links.twig +++ b/modules/material/themes/material/default/selectidp-links.twig @@ -38,7 +38,7 @@ {% if analytics_tracking_id is not empty %} gtag('event', 'IdP', { 'event_category': 'hub', - 'event_label': 'choice', + 'event_label': 'choice-disabled', 'value': id }); {% endif %} diff --git a/modules/material/themes/material/mfa/new-backup-codes.twig b/modules/material/themes/material/mfa/new-backup-codes.twig index a9ab149..1609b3e 100644 --- a/modules/material/themes/material/mfa/new-backup-codes.twig +++ b/modules/material/themes/material/mfa/new-backup-codes.twig @@ -56,7 +56,7 @@ document.getElementById('copyBtn').addEventListener('click', function() { copyCodesToClipboard(this); }); - document.querySelector('input[type="checkbox"]').addEventListener('change', function(e) { + document.getElementById('checkbox').addEventListener('change', function(e) { contBtn = document.querySelector('button[name="continue"]'); contBtn.disabled = !e.checked; }); @@ -159,7 +159,7 @@
diff --git a/modules/material/themes/material/mfa/prompt-for-mfa-webauthn.twig b/modules/material/themes/material/mfa/prompt-for-mfa-webauthn.twig index 42ef14b..6ea93dc 100644 --- a/modules/material/themes/material/mfa/prompt-for-mfa-webauthn.twig +++ b/modules/material/themes/material/mfa/prompt-for-mfa-webauthn.twig @@ -64,7 +64,7 @@ return input; } - document.querySelector('.mdl-button.mdl-color-text--red').addEventListener('click', verifyWebAuthn); + document.getElementById('showBtn').addEventListener('click', verifyWebAuthn); document.querySelector('body').addEventListener{'load', verifyWebAuthn}; }); @@ -121,6 +121,7 @@