From 46701fff761b9ad531b07b15f7014eb5c4cfa9a8 Mon Sep 17 00:00:00 2001 From: RyanEddyIC Date: Wed, 15 Jan 2025 10:02:58 -0500 Subject: [PATCH] new plan year cucumber fixes --- .../exchanges/hbx_profiles/_new_benefit_application.html.slim | 2 +- .../exchanges/hbx_profiles/new_benefit_application.js.erb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/exchanges/hbx_profiles/_new_benefit_application.html.slim b/app/views/exchanges/hbx_profiles/_new_benefit_application.html.slim index bdd20e7e2af..4df3b4e7139 100644 --- a/app/views/exchanges/hbx_profiles/_new_benefit_application.html.slim +++ b/app/views/exchanges/hbx_profiles/_new_benefit_application.html.slim @@ -5,7 +5,7 @@ br .row .pull-right[style="margin-right:20px"] - i.fas.fa-times.fa-2x.admin-fa-times#closeBAForm[onclick="closeRow(this)"] + i.fas.fa-times.fa-2x.admin-fa-times#closeBAForm .row .col-md-4 label[for="effectiveStartDate" style="font-weight:bold"] diff --git a/app/views/exchanges/hbx_profiles/new_benefit_application.js.erb b/app/views/exchanges/hbx_profiles/new_benefit_application.js.erb index c27b6b5efd0..2392d5fdbe6 100644 --- a/app/views/exchanges/hbx_profiles/new_benefit_application.js.erb +++ b/app/views/exchanges/hbx_profiles/new_benefit_application.js.erb @@ -64,6 +64,10 @@ function initNewBAForm() { } } + $(document).on('click', '#closeBAForm', function() { + closeRow(this) + }) + function closeRow(element) { element.closest('tr').remove(); }