Skip to content

Commit

Permalink
add bs4 compatibility to select plan btn in csr modal (#4280)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanEddyIC authored and bbodine1 committed Aug 27, 2024
1 parent 8d62037 commit b7f41ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/shared/_csr_eligible_reminder_modal.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
</div>
<div class="modal-footer">
<%= link_to 'Cancel', "", class: 'btn btn-default', data: {'dismiss': 'modal' } %>
<%= link_to("Select Plan", "javascript:void(0)", {class: 'btn btn-primary pull-right btn-right mtz plan-select select', onclick: "$(\'.panel[data-plan-id=\"#{plan.id}\"]\').find(\'.btn-default.dn\').trigger(\'click\')"}) %> &nbsp;
<% if @bs4 %>
<%= link_to("Select Plan", "#", {class: 'btn btn-primary pull-right btn-right mtz plan-select select', onclick: "$(\'.plan-card[data-plan-id=\"#{plan.id}\"]\').find(\'.btn-default.hidden\').trigger(\'click\'); return false;"}) %> &nbsp;
<% else %>
<%= link_to("Select Plan", "javascript:void(0)", {class: 'btn btn-primary pull-right btn-right mtz plan-select select', onclick: "$(\'.panel[data-plan-id=\"#{plan.id}\"]\').find(\'.btn-default.dn\').trigger(\'click\')"}) %> &nbsp;
<% end %>
</div>
</div>
</div>
Expand Down

0 comments on commit b7f41ca

Please sign in to comment.