|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
div.recall_con .reply_btn{margin-left:555px;margin-top:5px;}
|
|
|
|
|
</style>
|
|
|
|
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
|
|
|
|
|
<div class="msg_box" id='leave-message' nhname="new_message">
|
|
|
|
|
<div class="msg_box fl" id='leave-message' nhname="new_message">
|
|
|
|
|
<%# reply_allow = JournalsForMessage.create_by_user? User.current %>
|
|
|
|
|
<h4><%= l(:label_leave_message) %></h4>
|
|
|
|
|
|
|
|
|
@ -30,15 +30,20 @@
|
|
|
|
|
:placeholder => "#{l(:label_welcome_my_respond)}",:maxlength => 250}%>
|
|
|
|
|
<textarea cols="40" nhname="new_message_textarea" maxlength="250" name="new_form[course_message]" placeholder="请在此留下你的意见和建议!" rows="20" style="display: none;"></textarea>
|
|
|
|
|
<p nhname="contentmsg"></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="fl" style="padding-top:5px;" nhname="toolbar_container"></div>
|
|
|
|
|
<a href="javascript:void(0)" class="grey_btn fr ml10 mt10" nhname="cancel_btn">取 消</a>
|
|
|
|
|
<a href="javascript:void(0)" onclick='$("#leave_message_form").submit();' class="blue_btn fr mt10">
|
|
|
|
|
<%= l(:button_leave_meassge)%>
|
|
|
|
|
</a>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<div id="history">
|
|
|
|
|
<%= render :partial => 'history',:locals => { :contest => @contest, :journals => @jour, :state => false} %>
|
|
|
|
|
</div>
|
|
|
|
@ -49,6 +54,7 @@
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
|
|
function init_editor(params){
|
|
|
|
|
var editor = params.kindutil.create(params.textarea, {
|
|
|
|
|
resizeType : 1,minWidth:"1px",width:"100%",height:"150px",
|
|
|
|
@ -155,7 +161,7 @@
|
|
|
|
|
params.div_form = $(">.respond-form",params.container);
|
|
|
|
|
params.form = $("form",params.div_form);
|
|
|
|
|
params.textarea = $("textarea[name='user_notes']",params.div_form);
|
|
|
|
|
params.contentmsg = $("p[nhname='contentmsg']",params.div_form),
|
|
|
|
|
params.contentmsg = $("p[nhname='contentmsg']",params.div_form);
|
|
|
|
|
params.toolbar_container = $("div[nhname='toolbar_container']",params.div_form);
|
|
|
|
|
params.cancel_btn = $("input[nhname='cancel_btn']",params.div_form);
|
|
|
|
|
if(params.textarea.data('init') == undefined){
|
|
|
|
@ -166,6 +172,7 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
params.cancel_btn.click();
|
|
|
|
|
toggleAndSettingWordsVal(params.div_form, params.textarea);
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
if(!params.div_form.is(':hidden')){
|
|
|
|
|
params.textarea.show();
|
|
|
|
@ -187,7 +194,7 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
params.textarea = $("textarea[nhname='new_message_textarea']",params.div_form);
|
|
|
|
|
params.contentmsg = $("p[nhname='contentmsg']",params.div_form),
|
|
|
|
|
params.contentmsg = $("p[nhname='contentmsg']",params.div_form);
|
|
|
|
|
params.toolbar_container = $("div[nhname='toolbar_container']",params.div_form);
|
|
|
|
|
if(params.textarea.data('init') == undefined){
|
|
|
|
|
params.editor = init_editor(params);
|
|
|
|
|