diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 688d7e2ac..0e36d5fd9 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -213,6 +213,7 @@
<% occupation1 = User.current.user_extensions.occupation %>
<% occupation = User.current.user_extensions.occupation %>
<% title = User.current.user_extensions.technical_title %>
+ <% gender = User.current.user_extensions.gender %>
<% language = User.current.language %>
<% else %>
<% province = "湖南省" %>
@@ -510,6 +511,13 @@
}
}
}
+ function init_gender(pField, gender) {
+ for (var i=0; i"
init_identity_and_title(document.getElementById('userIdentity'), identity, document.getElementById('userTechnical_title'), title, language);
+ //sex
+ var gender = "<%= "#{gender}" %>"
+ init_gender(document.getElementById('gender'), gender);
+
$("#userIdentity").change();
<% if( !@act.nil? && @act == 'password') %>
$("#users_tb_2").click();