summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-04-03 10:45:59 +0800
committerBigCoke233 <hi@guhub.cn>2020-04-03 10:45:59 +0800
commit6dc19744884c704d26d7041d810b614b54820e86 (patch)
treec727d2d59ebef013bd789c4f9a6166c2ba68e0ff
parent70963c72d91488db68d9fb92478772b32cec4dc4 (diff)
:+1: Perf: 回复上级评论时的加载动画
-rw-r--r--assets/js/cmt.miracles.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/cmt.miracles.js b/assets/js/cmt.miracles.js
index 1db4734..2a3fb45 100644
--- a/assets/js/cmt.miracles.js
+++ b/assets/js/cmt.miracles.js
@@ -108,7 +108,7 @@ var MiraclesComment = {
function beforeComment() {
//禁用按钮
$('#comment-form .comment-submit').attr('disabled', true);
- $('.comment-form').addClass('comment-sending');
+ $('#comment-form').addClass('comment-sending');
$('#comment-form .comment-submit').text('提交中...');
};
beforeComment();
@@ -117,7 +117,7 @@ var MiraclesComment = {
function afterComment(status) {
//取消禁用评论按钮
$('#comment-form .comment-submit').removeAttr('disabled');
- $('.comment-form').removeClass('comment-sending');
+ $('#comment-form').removeClass('comment-sending');
$('#comment-form .comment-submit').text('评论');
//判断是否评论成功