|
|
|
@ -150,9 +150,14 @@
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
/*var postContent = $("#intro_content_<%#= @document.id%>").html();
|
|
|
|
|
postContent = postContent.replace(/ /g," ");
|
|
|
|
|
$("#intro_content_<%#= @document.id%>").html(postContent);*/
|
|
|
|
|
$("#intro_content_<%= @document.id%> p,#intro_content_<%= @document.id%> span,#intro_content_<%= @document.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);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
function expand_reply(container, btnid) {
|
|
|
|
|
var target = $(container);
|
|
|
|
|