2015-06-11 16:24:09 +08:00
|
|
|
<style type="text/css">
|
2015-12-15 17:34:08 +08:00
|
|
|
div.ke-toolbar{display:none;width:400px;border:none;background:none;padding:0px 0px;}
|
|
|
|
span.ke-toolbar-icon{line-height:26px;font-size:14px;padding-left:26px;}
|
|
|
|
span.ke-toolbar-icon-url{background-image:url( /images/public_icon.png )}
|
|
|
|
div.ke-toolbar .ke-outline{padding:0px 0px;line-height:26px;font-size:14px;}
|
|
|
|
span.ke-icon-emoticons{background-position:0px -671px;width:50px;height:26px;}
|
|
|
|
span.ke-icon-emoticons:hover{background-position:-79px -671px;width:50px;height:26px;}
|
|
|
|
div.ke-toolbar .ke-outline{border:none;}
|
2015-06-11 16:24:09 +08:00
|
|
|
|
2015-12-15 17:34:08 +08:00
|
|
|
div.respond-form .reply_btn{margin-left:565px;margin-top:5px;}
|
|
|
|
div.recall_con{width:570px;}
|
|
|
|
div.recall_con .reply_btn{margin-left:525px;margin-top:5px;}
|
|
|
|
/*.ke-container{height: 80px !important;}*/
|
2015-06-11 16:24:09 +08:00
|
|
|
</style>
|
2015-12-06 15:03:36 +08:00
|
|
|
<%= content_for(:header_tags) do %>
|
2015-12-14 17:13:57 +08:00
|
|
|
<%= import_ke(enable_at: true, prettify: false, init_activity: true) %>
|
2015-12-18 10:40:12 +08:00
|
|
|
<%= javascript_include_tag "init_KindEditor" %>
|
2015-12-06 15:03:36 +08:00
|
|
|
<% end %>
|
2015-09-02 14:07:19 +08:00
|
|
|
<script >
|
2015-09-09 10:55:32 +08:00
|
|
|
init_KindEditor_data('',80);
|
2015-09-02 14:07:19 +08:00
|
|
|
</script>
|
|
|
|
<div class="msg_box fl mb10" id='leave-message'>
|
2015-04-07 13:47:39 +08:00
|
|
|
<h4><%= l(:label_leave_message) %></h4>
|
|
|
|
|
|
|
|
<% if !User.current.logged?%>
|
2015-12-15 17:34:08 +08:00
|
|
|
<div style="font-size: 14px;margin:20px;">
|
|
|
|
<%= l(:label_user_login_tips) %>
|
|
|
|
<%= link_to l(:label_user_login_new), signin_path %>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
2015-04-07 13:47:39 +08:00
|
|
|
<% else %>
|
2015-09-02 14:07:19 +08:00
|
|
|
<div nhname='new_message_' style="display:none;">
|
2015-12-11 09:42:19 +08:00
|
|
|
<%= form_for('new_form',:url => {:controller => 'words', :action => 'leave_course_message'}, :html=>{:id => "course_feedback_new"},:method => "post") do |f|%>
|
2015-09-02 14:07:19 +08:00
|
|
|
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
|
2016-01-29 16:55:07 +08:00
|
|
|
<div nhname='toolbar_container_' ></div>
|
2015-09-02 14:07:19 +08:00
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" nhname='new_message_textarea_' name="new_form[course_message]"></textarea>
|
|
|
|
<p nhname='contentmsg_'></p>
|
2016-07-07 15:08:34 +08:00
|
|
|
<a id="new_message_cancel_btn_" href="javascript:void(0)" class="grey_btn fr mt10 ml10 mb10">取消</a>
|
|
|
|
<a href="javascript:void(0);" class="blue_btn fr mt10" id="new_message_submit_btn_" >留言</a>
|
2015-12-11 09:42:19 +08:00
|
|
|
<% end %>
|
2015-06-12 16:34:25 +08:00
|
|
|
</div>
|
2015-04-07 13:47:39 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2015-06-12 16:34:25 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
|
2015-04-07 13:47:39 +08:00
|
|
|
<div id="history">
|
|
|
|
<%= render :partial => 'history',:locals => { :contest => @contest, :journals => @jour, :state => false} %>
|
|
|
|
</div>
|
|
|
|
<ul class="wlist">
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
2015-06-11 16:24:09 +08:00
|
|
|
</ul>
|
|
|
|
<div style="display:none;"><a href="#" id="nhjump"></a></div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2015-12-11 09:42:19 +08:00
|
|
|
|
|
|
|
$(function(){
|
2015-12-15 17:34:08 +08:00
|
|
|
KindEditor.ready(function(K){
|
|
|
|
$("a[nhname='reply_btn']").live('click',function(){
|
|
|
|
var params = {};
|
|
|
|
params.kindutil = K;
|
|
|
|
params.container = $(this).parent('div').parent('div');
|
|
|
|
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.toolbar_container = $("div[nhname='toolbar_container']",params.div_form);
|
2016-05-18 10:57:56 +08:00
|
|
|
params.submit_btn = $("input[nhname='submit_btn']",params.div_form);
|
2015-12-15 17:34:08 +08:00
|
|
|
params.cancel_btn = $("input[nhname='cancel_btn']",params.div_form);
|
|
|
|
params.height = 55;
|
2016-05-18 10:57:56 +08:00
|
|
|
params.editor = init_editor(params);
|
|
|
|
init_form(params);
|
|
|
|
params.cancel_btn.click(function(){
|
|
|
|
nh_reset_form(params);
|
|
|
|
});
|
|
|
|
params.submit_btn.one('click', function () {
|
|
|
|
params.form.submit();
|
|
|
|
});
|
|
|
|
params.textarea.data('init',1);
|
2015-12-15 17:34:08 +08:00
|
|
|
params.cancel_btn.click();
|
|
|
|
toggleAndSettingWordsVal(params.div_form, params.textarea);
|
|
|
|
setTimeout(function(){
|
|
|
|
if(!params.div_form.is(':hidden')){
|
|
|
|
params.textarea.show();
|
|
|
|
params.textarea.focus();
|
|
|
|
params.textarea.hide();
|
|
|
|
}
|
|
|
|
},300);
|
|
|
|
});
|
|
|
|
});
|
2015-06-11 16:24:09 +08:00
|
|
|
});
|
2015-12-11 09:42:19 +08:00
|
|
|
|
2015-06-17 17:01:03 +08:00
|
|
|
</script>
|