From 81788e7dfaf7d981235d9fd9e1a135d848eecbe4 Mon Sep 17 00:00:00 2001 From: Daria Mayorova Date: Wed, 5 Jun 2024 13:22:03 +0200 Subject: [PATCH] [THREESCALE-11067] Onboarding wizard fix for `managed-services` (#3821) * Remove Coffee script from Slim template * Remove jquery dependency in the last page of onboarding wizard --- .../admin/onboarding/wizard/request/show.html.slim | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/provider/admin/onboarding/wizard/request/show.html.slim b/app/views/provider/admin/onboarding/wizard/request/show.html.slim index 2c743d2a5b..fe09186129 100644 --- a/app/views/provider/admin/onboarding/wizard/request/show.html.slim +++ b/app/views/provider/admin/onboarding/wizard/request/show.html.slim @@ -26,12 +26,14 @@ ol.explain.fa-ul i.icon.fa-li.fa.fa-puzzle-piece.icon--success .text strong> = link_to @request.api_name, edit_provider_admin_onboarding_wizard_api_path - ' returned a response to the customer through the gateway. + ' returned a response to the customer through the gateway. = link_to "Cool, what's next?", provider_admin_onboarding_wizard_outro_path, class: "button" -coffee: - $(".toggle").live "click", -> - target = $(this).attr("href") - $(target).toggleClass("is-hidden"); - +javascript: + document.addEventListener('DOMContentLoaded', () => { + const toggle = document.getElementById('response-toggle') + toggle.addEventListener('click', () => { + document.getElementById('response').classList.toggle('is-hidden') + }) + })