diff --git a/app/assets/javascripts/inline_replacements.js b/app/assets/javascripts/inline_replacements.js index c061c4f3e55..bd486584e8d 100644 --- a/app/assets/javascripts/inline_replacements.js +++ b/app/assets/javascripts/inline_replacements.js @@ -231,3 +231,21 @@ function init_dependent_form() { } } } + +$('.remove-personal-form').off('click'); +$('.remove-personal-form').on('click', function (e) { + $(".append_consumer_info").empty(); + if ($(".my-household-page")) { + $("#person-<%= @person.id %>").addClass('hidden'); + $("a[id^=edit-member]").removeClass('disabled'); + $("a[id^=edit-member]").removeAttr('disabled'); + // primary_family + var family_table = $("<%= escape_javascript(render 'insured/families/manage_family_table', members: @person.primary_family.active_family_members) %>"); + $('#manage_family_content').html(family_table); + } +}); + +$(document).off('click', '.confirm-member'); +$(document).on('click', '.confirm-member', function(e) { + $('#save_personal').trigger('click'); +}); \ No newline at end of file diff --git a/app/views/people/landing_pages/_personal.html.erb b/app/views/people/landing_pages/_personal.html.erb index 10484fac760..dc75f3f9180 100644 --- a/app/views/people/landing_pages/_personal.html.erb +++ b/app/views/people/landing_pages/_personal.html.erb @@ -128,25 +128,6 @@ <% end %> - <% else %> <%= form_for @person do |f|%>