Skip to content

Commit

Permalink
fix: show submit button when broker agency is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
bbodine1 committed Jan 7, 2025
1 parent 2b041ad commit 0a7ab0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/broker_role.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
<% else %>
<h4> <span class="alert-error"> <%= l10n("no_agencies_found") %> </span> </h4>
<% end %>
<% end %>

<script>
$(document).ready(function() {
if ($('.table-responsive').length) {
$('.broker-agency-submit').removeClass('hidden');
}
});
</script>
<script>
$(document).ready(function() {
if ($('.table-responsive').length) {
$('.broker-agency-submit').removeClass('hidden');
}
});
</script>
<% end %>

0 comments on commit 0a7ab0c

Please sign in to comment.