parent
c357971e8a
commit
c729c1252d
@ -0,0 +1,24 @@
|
|||||||
|
<div class="homepagePostIntro break_word upload_img list_style table_maxWidth lh18" id="activity_description_<%= user_activity_id%>">
|
||||||
|
<div id="intro_content_<%= user_activity_id%>">
|
||||||
|
<%= content.to_s.html_safe%>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
var heightType = <%= maxheight %>;
|
||||||
|
|
||||||
|
if (heightType > 0){
|
||||||
|
$("#activity_description_<%= user_activity_id%>").css("max-height",heightType+"px");
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#intro_content_<%= user_activity_id%> p,#intro_content_<%= user_activity_id%> span,#intro_content_<%= user_activity_id%> em").each(function(){
|
||||||
|
var postContent = $(this).html();
|
||||||
|
postContent = postContent.replace(/ /g," ");
|
||||||
|
postContent= postContent.replace(/ {2}/g," ");
|
||||||
|
postContent=postContent.replace(/ /g," ");
|
||||||
|
postContent=postContent.replace(/ /g," ");
|
||||||
|
$(this).html(postContent);
|
||||||
|
});
|
||||||
|
description_show_hide(<%=user_activity_id %>);
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in new issue