课程通知回复时,所有回复框都会提交
This commit is contained in:
parent
84ff3450d2
commit
62360175d1
|
@ -48,11 +48,11 @@
|
||||||
<div nhname='new_message_<%= user_activity_id%>' style="display:none;">
|
<div nhname='new_message_<%= user_activity_id%>' style="display:none;">
|
||||||
<%= form_for('new_form',:url => {:controller => 'comments', :action => 'create', :id => activity},:method => "post", :remote => true) do |f|%>
|
<%= form_for('new_form',:url => {:controller => 'comments', :action => 'create', :id => activity},:method => "post", :remote => true) do |f|%>
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" nhname='new_message_textarea' name="comment"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
||||||
<p nhname='contentmsg'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<div nhname='toolbar_container' style="float:left;padding-top:3px;"></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>' style="float:left;padding-top:3px;"></div>
|
||||||
<a id="new_message_cancel_btn" href="javascript:void(0)" class="grey_n_btn fr " style="margin-top:3px;">取消</a>
|
<a id="new_message_cancel_btn_<%= user_activity_id%>" href="javascript:void(0)" class="grey_n_btn fr " style="margin-top:3px;">取消</a>
|
||||||
<a id="new_message_submit_btn" href="javascript:void(0)" class="blue_n_btn fr mr5 " style="margin-top:3px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr mr5 " style="margin-top:3px;">发送</a>
|
||||||
<% end%>
|
<% end%>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
|
@ -77,11 +77,11 @@ function init_KindEditor_data(id){
|
||||||
if (params.form == undefined || params.form.length == 0) {
|
if (params.form == undefined || params.form.length == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
params.textarea = $("textarea[nhname='new_message_textarea']", params.div_form);
|
params.textarea = $("textarea[nhname='new_message_textarea_" + id + "']", params.div_form);
|
||||||
params.contentmsg = $("p[nhname='contentmsg']", params.div_form);
|
params.contentmsg = $("p[nhname='contentmsg_" + id + "']", params.div_form);
|
||||||
params.toolbar_container = $("div[nhname='toolbar_container']", params.div_form);
|
params.toolbar_container = $("div[nhname='toolbar_container_" + id + "']", params.div_form);
|
||||||
params.cancel_btn = $("#new_message_cancel_btn");
|
params.cancel_btn = $("#new_message_cancel_btn_" + id);
|
||||||
params.submit_btn = $("#new_message_submit_btn");
|
params.submit_btn = $("#new_message_submit_btn_" + id);
|
||||||
|
|
||||||
if (params.textarea.data('init') == undefined) {
|
if (params.textarea.data('init') == undefined) {
|
||||||
params.editor = init_editor(params);
|
params.editor = init_editor(params);
|
||||||
|
|
Loading…
Reference in New Issue