diff --git a/app/views/layouts/_forbidden_new_feedback.html.erb b/app/views/layouts/_forbidden_new_feedback.html.erb
new file mode 100644
index 000000000..03c9855f9
--- /dev/null
+++ b/app/views/layouts/_forbidden_new_feedback.html.erb
@@ -0,0 +1,40 @@
+<%= javascript_include_tag "feedback" %>
+
+
diff --git a/app/views/layouts/new_base_user_show.html.erb b/app/views/layouts/new_base_user_show.html.erb
index 37354d8d8..b49df8829 100644
--- a/app/views/layouts/new_base_user_show.html.erb
+++ b/app/views/layouts/new_base_user_show.html.erb
@@ -233,7 +233,7 @@
<%= yield %>
- <%= render :partial => 'layouts/new_feedback' %>
+ <%= render :partial => 'layouts/forbidden_new_feedback' %>
<%= render :partial => 'layouts/footer_show' %>
diff --git a/app/views/my/_apply_add_school.html.erb b/app/views/my/_apply_add_school.html.erb
index c7b08e305..806017a00 100644
--- a/app/views/my/_apply_add_school.html.erb
+++ b/app/views/my/_apply_add_school.html.erb
@@ -60,7 +60,7 @@
-
+
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 71694da60..2e14f493b 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -78,7 +78,7 @@
- <%= text_field_tag :lastname,@user.lastname+@user.firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
+ <%= text_field_tag :lastname,@user.lastname+@user.firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>姓名不能为空
<% if User.current.user_extensions && User.current.user_extensions.gender && User.current.user_extensions.gender == 1 %>
@@ -175,7 +175,7 @@
<%= f.select :language, :Chinese => :zh, :English => :en %>
- 确定
+ 确定
@@ -560,44 +560,80 @@
$("#users_tb_2").click();
<% end %>
- $('#my_account_form_link').on("click",(function(e){
- //$('#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();
- return;
- }
-
- //姓名不能为空
- if( $("#lastname").val() == '' ){
- $("#lastname").focus();
- e.stopImmediatePropagation();
- return;
- }
-
- if( $("input[name='province']").val().trim() == '' ){ //学校名字必须填写
- $("#hint").html('高校(单位)名称不能为空').show();
- e.stopImmediatePropagation();
- return;
- }
-
- if($("#no").is(":visible") == true && $("#no").val() == ""){
- $("#no").focus();
- e.stopImmediatePropagation();
- return;
- }
-
- $('#my_account_form_btn').click();
- }));
+// $('#my_account_form_link').on("click",(function(e){
+// //$('#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();
+// return;
+// }
+//
+// //姓名不能为空
+// if( $("#lastname").val() == '' ){
+// $("#lastname").focus();
+// $("#last_name_notice").show();
+// e.stopImmediatePropagation();
+// return;
+// }
+//
+// if( $("input[name='province']").val().trim() == '' ){ //学校名字必须填写
+// $("#hint").html('高校(单位)名称不能为空').show();
+// e.stopImmediatePropagation();
+// return;
+// }
+//
+// if($("#no").is(":visible") == true && $("#no").val() == ""){
+// $("#no").focus();
+// e.stopImmediatePropagation();
+// return;
+// }
+//
+// $('#my_account_form').submit();
+// }));
$('#my_password_form_link').click(function(){
$('#my_password_form_btn').click();
});
});
+
+function my_account_form_submit(){
+ 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();
+ return;
+ }
+
+ //姓名不能为空
+ if( $("#lastname").val() == '' ){
+ $("#lastname").focus();
+ $("#last_name_notice").show();
+ e.stopImmediatePropagation();
+ return;
+ }
+
+ if( $("input[name='province']").val().trim() == '' ){ //学校名字必须填写
+ $("#hint").html('高校(单位)名称不能为空').show();
+ e.stopImmediatePropagation();
+ return;
+ }
+
+ if($("#no").is(":visible") == true && $("#no").val() == ""){
+ $("#no").focus();
+ e.stopImmediatePropagation();
+ return;
+ }
+
+ $('#my_account_form').submit();
+}