项目留言提交JS问题修复

Branch_szzh
huang 10 years ago
parent 6a9cb0db5d
commit 55f8484654

@ -22,14 +22,14 @@
<hr/>
</div>
<% else %>
<%= form_for('new_form', :method => :post,
<%= form_for('new_form', :method => :post, :html => {:id => 'project_feedback_form', :multipart => true},
:url => {:controller => 'words', :action => 'leave_project_message'}) do |f|%>
<%= f.text_area 'project_message', :rows => 3, :cols => 65,
:placeholder => "#{l(:label_welcome_my_respond)}",:nhname=>'new_message_textarea' %>
<p nhname="contentmsg"></p>
<div class="fl mt10" style="padding-top:5px;" nhname="toolbar_container"></div>
<%= submit_tag l(:button_leave_meassge), :name => nil , :class => "blue_btn fr mt10 mb10" %>
<%#= submit_tag l(:button_leave_meassge), :name => nil , :class => "blue_btn fr mt10 mb10" %>
<%= link_to l(:button_leave_meassge), "javascript:void(0)", :onclick => 'submitProjectFeedback();', :onmouseover => 'submitFocus(this);', :class => 'blue_btn fr mt10 mb10' %>
<% end %>
<% end %>

@ -491,3 +491,8 @@ function judgeprojectname(){
}
});
}
//用户反馈
function submitProjectFeedback() {
$("#project_feedback_form").submit();
}
Loading…
Cancel
Save