33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
<%= form_tag(words_create_reply_path, :remote => true,:id=>"form_#{journal.id}") 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
|
|
%>
|
|
<p nhname="contentmsg"></p>
|
|
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
|
<%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => m_reply_id.user.id %>
|
|
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
|
|
<%= hidden_field_tag 'show_name',params[:show_name],:value => show_name.nil? ? true : show_name %>
|
|
|
|
<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)"%>
|
|
<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>
|