2016-05-17 10:31:10 +08:00
|
|
|
<div class="homepagePostIntro break_word upload_img maxh360 table_maxWidth " id="activity_description_<%= user_activity_id%>">
|
2016-01-29 16:16:02 +08:00
|
|
|
<div id="intro_content_<%= user_activity_id%>">
|
2016-05-19 16:24:57 +08:00
|
|
|
<%= content.to_s.html_safe %>
|
2016-01-29 16:16:02 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
2016-02-02 10:08:04 +08:00
|
|
|
$("#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);
|
|
|
|
});
|
2016-05-20 15:30:25 +08:00
|
|
|
autoUrl('intro_content_<%= user_activity_id%>');
|
2016-01-29 16:16:02 +08:00
|
|
|
description_show_hide(<%=user_activity_id %>);
|
|
|
|
});
|
2016-01-19 16:53:34 +08:00
|
|
|
</script>
|