diff --git a/app/views/managements/update_user.html.erb b/app/views/managements/update_user.html.erb index 3203614d..554ea2a2 100644 --- a/app/views/managements/update_user.html.erb +++ b/app/views/managements/update_user.html.erb @@ -188,7 +188,7 @@ name="business" value="<%= @user.business? ? "1" : "0" %>" id="person_business" class="magic-checkbox" style="float:left; margin-top: 8px;"> - +
  • @@ -621,6 +621,13 @@ $("#user_form_link").on("click",function(){ + var check = document.getElementById('person_business').checked; + if(check){ + document.getElementById('person_business').value = "1"; + }else{ + document.getElementById('person_business').value = "0"; + } + my_account_form_submit(); }); function my_account_form_submit(){