diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 7bc674ea6..c2a94a478 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -17,7 +17,7 @@
- 登录名 : *
- 邮箱 : *
- - 身份 :
+ - 身份 : *
- 姓(First Name) : *
- 名(Last Name) : *
- 组织名 : *
@@ -34,7 +34,10 @@
- <%= f.text_field :mail,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210"%>
-
-
- <%= f.text_field :lastname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
@@ -701,6 +705,11 @@
$("#users_tb_2").click();
<% end %>
$('#my_account_form_link').click(function(e){
+ if($("#userIdentity").val() == -1 ) {
+ $("#identity_hint").html('请选择身份').show();
+ e.stopImmediatePropagation();
+ return;
+ }
if( $("input[name='province']").val().trim() != '' && $("input[name='occupation']").val().trim() == ''){ //学校名字和id不对的话
$("#hint").html('学校必须是从下拉列表中选择的,不能手动修改').show();
e.stopImmediatePropagation();