|
|
|
@ -5,4 +5,20 @@
|
|
|
|
|
<% elsif @org_subfield %>
|
|
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'organizations/org_subfield_message', :locals => {:activity => @topic,:user_activity_id =>@user_activity_id}) %>");
|
|
|
|
|
<%end%>
|
|
|
|
|
init_activity_KindEditor_data(<%= @user_activity_id%>,"","87%", "UserActivity");
|
|
|
|
|
init_activity_KindEditor_data(<%= @user_activity_id %>,"","87%", "UserActivity");
|
|
|
|
|
showNormalImage('activity_description_<%= @user_activity_id %>');
|
|
|
|
|
if($("#intro_content_<%= @user_activity_id %>").height() > 810) {
|
|
|
|
|
$("#intro_content_show_<%= @user_activity_id %>").show();
|
|
|
|
|
}
|
|
|
|
|
$("#intro_content_show_<%= @user_activity_id %>").click(function(){
|
|
|
|
|
$("#activity_description_<%= @user_activity_id %>").toggleClass("maxh360");
|
|
|
|
|
$("#activity_description_<%= @user_activity_id %>").toggleClass("lh18");
|
|
|
|
|
$("#intro_content_show_<%= @user_activity_id %>").hide();
|
|
|
|
|
$("#intro_content_hide_<%= @user_activity_id %>").show();
|
|
|
|
|
});
|
|
|
|
|
$("#intro_content_hide_<%= @user_activity_id %>").click(function(){
|
|
|
|
|
$("#activity_description_<%= @user_activity_id %>").toggleClass("maxh360");
|
|
|
|
|
$("#activity_description_<%= @user_activity_id %>").toggleClass("lh18");
|
|
|
|
|
$("#intro_content_hide_<%= @user_activity_id %>").hide();
|
|
|
|
|
$("#intro_content_show_<%= @user_activity_id %>").show();
|
|
|
|
|
});
|