Skip to content

Commit

Permalink
bs4 fix home modal shop sep button (#4435)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlienparker committed Sep 13, 2024
1 parent deb1fa3 commit a3dbf7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/qle.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ $(function () {

$(document).on('click', 'a.existing-sep-item', function() {
$('#choose_flow').modal('hide');
$('.modal-backdrop').remove();
//window.scrollTo(0, 0);
$('html,body').animate({scrollTop: 0});
init_qle_message();
Expand Down
6 changes: 3 additions & 3 deletions app/helpers/insured/families_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def qle_link_generator(qle, index)
link_to qle_title_html || qle.title, @bs4 ? "#" : "javascript:void(0)", options
end

def qle_link_generator_for_an_existing_qle(qle, link_title = nil)
options = {class: 'existing-sep-item'}
def qle_link_generator_for_an_existing_qle(qle, link_title = nil, link_class = nil)
options = {class: "existing-sep-item #{link_class}"}
data = {
title: qle.title, id: qle.id.to_s, label: qle.event_kind_label,
is_self_attested: qle.is_self_attested,
Expand Down Expand Up @@ -336,7 +336,7 @@ def build_link_for_sep_type(sep, link_title = nil, family_id = nil, link_class =
return if qle.blank?
if qle.date_options_available && sep.optional_effective_on.present?
# Take to the QLE like flow of choosing Option dates if available
qle_link_generator_for_an_existing_qle(qle, link_title)
qle_link_generator_for_an_existing_qle(qle, link_title, link_class)
else
# Take straight to the Plan Shopping - Add Members Flow. No date choices.
# Use turbolinks: false, to avoid calling controller action twice.
Expand Down

0 comments on commit a3dbf7e

Please sign in to comment.