diff --git a/app/assets/javascripts/inline_replacements.js b/app/assets/javascripts/inline_replacements.js index 4326785e9e8..c061c4f3e55 100644 --- a/app/assets/javascripts/inline_replacements.js +++ b/app/assets/javascripts/inline_replacements.js @@ -48,6 +48,18 @@ $(document).on('click', '#priorSepModal .btn-confirmation', function() { return false; }); +$(document).on('click', '.broker-staff-registration-container button.search', function() { + // components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_new_staff_applicant.html.erb + brokerSearch(); + return false +}); + +$(document).on('click', '.select-broker-agency', function(event) { + event.preventDefault(); + selectBrokereAgency(this); +}); +// components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_search_broker_agency.html.erb: + function init_dependent_address_fields() { // app/views/shared/_address_fields_for_dependent.html.erb $(document).ready(function () { diff --git a/components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_new_staff_applicant.html.erb b/components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_new_staff_applicant.html.erb index e7ad19129cb..8139b519e97 100644 --- a/components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_new_staff_applicant.html.erb +++ b/components/benefit_sponsors/app/views/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/_new_staff_applicant.html.erb @@ -26,7 +26,7 @@ <%= f.hidden_field :is_broker_registration_page, value: true %> <%= f.text_field :agency_search, placeholder: "#{l10n('broker_agencies.broker_roles.agency_name_placeholder')}", class: 'form-control w-50 rounded' %>