课程留言bug
This commit is contained in:
parent
e7a109d28f
commit
f4fc978b23
|
@ -1,9 +1,9 @@
|
|||
<%= form_tag(words_create_reply_path, :remote => true,:id=>"form_#{journal.id}") do %>
|
||||
<%= form_tag(words_create_reply_path, :remote => true) do %>
|
||||
<%= text_area_tag 'user_notes', "", :class => 'w520 h50 mb5',
|
||||
:style => "resize: none;overflow: hidden;",:rows => 4,
|
||||
:placeholder => l(:label_feedback_respond_content)#,
|
||||
|
||||
#:maxlength => 250
|
||||
#:maxlength => 250
|
||||
%>
|
||||
<p nhname="contentmsg"></p>
|
||||
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
||||
|
@ -13,20 +13,6 @@
|
|||
|
||||
<div class="fl" style="padding-top:5px;" nhname="toolbar_container"></div>
|
||||
<%= submit_tag l(:button_feedback_respond), :name => nil ,
|
||||
:class => "reply_btn" ,:onclick=>"form_sub_#{ journal.id}($(this),event)"%>
|
||||
:class => "reply_btn"%>
|
||||
<input nhname="cancel_btn" type="button" style="display:none;"/>
|
||||
<% end %>
|
||||
<script>
|
||||
var flag_<%= journal.id %> = false;
|
||||
function form_sub_<%= journal.id%>(dom,event){
|
||||
if(flag_<%= journal.id %> == true){
|
||||
//dom.attr('disabled','disabled');
|
||||
return;
|
||||
}else{
|
||||
//dom.removeAttr('disabled');
|
||||
}
|
||||
flag_<%= journal.id %> = true;
|
||||
$("#form_<%= journal.id%>").submit();
|
||||
event.preventDefault();
|
||||
}
|
||||
</script>
|
||||
<% end %>
|
Loading…
Reference in New Issue