Commit 9dbb1d87 authored by Vanessa's avatar Vanessa

🐛 异步评论 emoji 处理

parent 55b331be
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.3.7, Feb 18, 2017 * @version 1.2.4.7, Mar 30, 2017
*/ */
var Page = function (tips) { var Page = function (tips) {
this.currentCommentId = ""; this.currentCommentId = "";
...@@ -615,7 +615,7 @@ $.extend(Page.prototype, { ...@@ -615,7 +615,7 @@ $.extend(Page.prototype, {
} }
if (typeof(addComment) === "undefined") { // https://github.com/b3log/solo/issues/12246 if (typeof(addComment) === "undefined") { // https://github.com/b3log/solo/issues/12246
that.addCommentAjax(result.cmtTpl, state); that.addCommentAjax(Util.replaceEmString(result.cmtTpl), state);
} else { // 1.9.0 向后兼容 } else { // 1.9.0 向后兼容
that.addCommentAjax(addComment(result, state), state); that.addCommentAjax(addComment(result, state), state);
} }
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
page.load(); page.load();
Skin.initArticle("${tocLabel}", "${siteViewLabel}"); Skin.initArticle("${tocLabel}", "${siteViewLabel}");
// emotions // emotions
page.replaceCommentsEm("#comments .comment-content"); page.replaceCommentsEm("#comments .content-reset");
<#nested> <#nested>
})(); })();
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment