动态回复框高度的自适应

This commit is contained in:
cxt 2015-09-17 19:06:15 +08:00
parent c3d0dac319
commit 8f317711b8
4 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/course_news', :locals => {:activity => @news,:user_activity_id =>@user_activity_id,:first_user_activity =>@first_user_activity,:page => @page}) %>");
init_KindEditor_data('<%= @user_activity_id%>',"30px","85%");
init_KindEditor_data('<%= @user_activity_id%>',"","85%");

View File

@ -1,3 +1,3 @@
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/project_issue', :locals => {:activity => @issue,:user_activity_id =>@user_activity_id,:first_user_activity =>@first_user_activity,:page => @page}) %>");
init_KindEditor_data(<%= @user_activity_id%>,"30px","85%");
init_KindEditor_data(<%= @user_activity_id%>,"","85%");

View File

@ -3,4 +3,4 @@
<%elsif @course%>
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/course_message', :locals => {:activity => @topic,:user_activity_id =>@user_activity_id,:first_user_activity =>@first_user_activity,:page => @page}) %>");
<%end%>
init_KindEditor_data(<%= @user_activity_id%>,"30px","85%");
init_KindEditor_data(<%= @user_activity_id%>,"","85%");

View File

@ -36,7 +36,7 @@
}
$(function() {
init_KindEditor_data(<%= user_activity.id%>,"30px","85%");
init_KindEditor_data(<%= user_activity.id%>,"","85%");
});
</script>
<% act= user_activity.act unless user_activity.act_type == "ProjectCreateInfo" %>