From 6dc19744884c704d26d7041d810b614b54820e86 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Fri, 3 Apr 2020 10:45:59 +0800 Subject: =?UTF-8?q?:+1:=20Perf:=20=E5=9B=9E=E5=A4=8D=E4=B8=8A=E7=BA=A7?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E6=97=B6=E7=9A=84=E5=8A=A0=E8=BD=BD=E5=8A=A8?= =?UTF-8?q?=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/cmt.miracles.js | 4 ++-- 1 file 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('评论'); //判断是否评论成功 -- cgit v1.2.3