|
|
|
@ -91,9 +91,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="postDetailDate mb5"><%= format_time( @article.created_on)%></div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="homepagePostIntro memo-content upload_img break_word" id="message_description_<%= @article.id %>" style="word-break: break-all; word-wrap:break-word;margin-bottom: 0px !important;" >
|
|
|
|
|
<%= @article.content.html_safe%>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div class="homepagePostIntro memo-content upload_img break_word" id="message_description_<%= @article.id %>" style="word-break: break-all; word-wrap:break-word;margin-bottom: 0px !important;" >-->
|
|
|
|
|
<!--<%#= @article.content.html_safe%>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>@article.id, :content=>@article.content} %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class=" fl" style="width: 600px">
|
|
|
|
|
<%#= link_to_attachments_course @topic, :author => false %>
|
|
|
|
@ -192,12 +193,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
var postContent = $("#message_description_<%= @article.id %>").html();
|
|
|
|
|
postContent = postContent.replace(/ /g," ");
|
|
|
|
|
postContent= postContent.replace(/ {2}/g," ");
|
|
|
|
|
postContent=postContent.replace(/ /g," ");
|
|
|
|
|
postContent=postContent.replace(/ /g," ");
|
|
|
|
|
$("#message_description_<%= @article.id %>").html(postContent);
|
|
|
|
|
autoUrl('message_description_<%= @article.id %>');
|
|
|
|
|
// var postContent = $("#message_description_<%#= @article.id %>").html();
|
|
|
|
|
// postContent = postContent.replace(/ /g," ");
|
|
|
|
|
// postContent= postContent.replace(/ {2}/g," ");
|
|
|
|
|
// postContent=postContent.replace(/ /g," ");
|
|
|
|
|
// postContent=postContent.replace(/ /g," ");
|
|
|
|
|
// $("#message_description_<%#= @article.id %>").html(postContent);
|
|
|
|
|
// autoUrl('message_description_<%#= @article.id %>');
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|