diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-04-03 10:45:59 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-04-03 10:45:59 +0800 |
| commit | 6dc19744884c704d26d7041d810b614b54820e86 (patch) | |
| tree | c727d2d59ebef013bd789c4f9a6166c2ba68e0ff /assets | |
| parent | 70963c72d91488db68d9fb92478772b32cec4dc4 (diff) | |
:+1: Perf: 回复上级评论时的加载动画
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/js/cmt.miracles.js | 4 |
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('评论');
//判断是否评论成功
|
