From 0a7ab0c69d25ac678670ff1b33edeab268e25a6c Mon Sep 17 00:00:00 2001 From: Brad Bodine Date: Tue, 7 Jan 2025 09:31:59 -0600 Subject: [PATCH] fix: show submit button when broker agency is selected --- app/assets/javascripts/broker_role.js | 3 +++ .../_search_broker_agency.html.erb | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/broker_role.js b/app/assets/javascripts/broker_role.js index e7a7b052837..624604ac2a1 100644 --- a/app/assets/javascripts/broker_role.js +++ b/app/assets/javascripts/broker_role.js @@ -23,6 +23,9 @@ function applyBrokerTabClickHandlers() { } $(document).on('click', 'a.select-broker-agency', function () { + if ($('.table-responsive').length) { + $('.broker-agency-submit').removeClass('hidden'); + } $('.result .form-border').removeClass('agency-selected'); $('#person_broker_agency_id').val($(this).data('broker_agency_profile_id')); $(this).parents('.form-border').addClass('agency-selected'); diff --git a/components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_search_broker_agency.html.erb b/components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_search_broker_agency.html.erb index c820ca9efec..282774f5c1e 100644 --- a/components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_search_broker_agency.html.erb +++ b/components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_search_broker_agency.html.erb @@ -58,12 +58,12 @@ <% else %>

<%= l10n("no_agencies_found") %>

<% end %> -<% end %> - + +<% end %>