Skip to content

Commit

Permalink
[THREESCALE-11067] Onboarding wizard fix for managed-services (#3821)
Browse files Browse the repository at this point in the history
* Remove Coffee script from Slim template

* Remove jquery dependency in the last page of onboarding wizard
  • Loading branch information
mayorova authored Jun 5, 2024
1 parent d0686f3 commit 81788e7
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 class="toggle" href="#response">a response</a> to the customer through the gateway.
' returned <a id="response-toggle" href="#response">a response</a> 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')
})
})

0 comments on commit 81788e7

Please sign in to comment.