将所有.comments样式替换表情

This commit is contained in:
oncereply 2012-12-13 17:36:49 +08:00
parent a90b430886
commit 849e4dd410
2 changed files with 9 additions and 2 deletions

View File

@ -11,8 +11,15 @@ var bootstyle = {
}
});
},
setCommentEmotions:function(){
// comments emotions
$(".comments").each(function(){
$(this).html(Util.replaceEmString($(this).html()));
});
},
init:function(){
this.setNavCurrent();
this.setCommentEmotions();
}
};
$(function(){

View File

@ -8,12 +8,12 @@
</#if>
<#if 0 != recentComments?size>
<section class="widget-2 widget">
<section id="widget_recent_comments" class="widget-2 widget comments">
<div class="widget-inner"><h4>${recentCommentsLabel}</h4>
<ul>
<#list recentComments as comment>
<li class="recentcomments">
<a target="_blank" rel="external nofollow" href="${comment.commentURL}" class="url">${comment.commentName}</a>
<a target="_blank" rel="external nofollow" href="${comment.commentURL}" class="url">${comment.commentName}:</a>
<a rel="external nofollow" class=" breakline url" href="${comment.commentSharpURL}">
${comment.commentContent}
</a>