|
|
|
@ -186,7 +186,7 @@
|
|
|
|
|
<a href="javascript:void(0)" class="grey_btn fr ml10 mr5" onclick="KindEditor.instances[0].html('');">
|
|
|
|
|
<%= l(:label_cancel_with_space) %>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="javascript:void(0)" class="blue_btn fr" onclick="submitComment();">
|
|
|
|
|
<a href="javascript:void(0)" class="blue_btn fr" id="news_submit_comment">
|
|
|
|
|
<%= l(:label_comment_with_space) %>
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
@ -199,6 +199,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#news_submit_comment").one('click',function(){
|
|
|
|
|
submitComment();
|
|
|
|
|
});
|
|
|
|
|
$("#message_description_<%= @news.id %> p,#message_description_<%= @news.id %> span,#message_description_<%= @news.id %> em").each(function(){
|
|
|
|
|
var postContent = $(this).html();
|
|
|
|
|
postContent = postContent.replace(/ /g," ");
|
|
|
|
|