socialforge/app/views/users/_intro_content.html.erb

13 lines
556 B
Plaintext
Raw Normal View History

2016-01-21 11:24:26 +08:00
<div class="homepagePostIntro break_word upload_img list_style maxh360 table_maxWidth lh18" id="activity_description_<%= user_activity_id%>">
2016-01-19 16:53:34 +08:00
<div id="intro_content_<%= user_activity_id%>">
<%= content.to_s.html_safe%>
</div>
</div>
<script type="text/javascript">
$(function(){
var postContent = $("#intro_content_<%= user_activity_id%>").html();
postContent = postContent.replace(/&nbsp;/g," ");
$("#intro_content_<%= user_activity_id%>").html(postContent);
2016-01-21 11:24:26 +08:00
description_show_hide(<%=user_activity_id %>);
2016-01-19 16:53:34 +08:00
});
</script>