From fa2b47eea2d1688991214b71bd484c3d01631158 Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Sun, 16 Jan 2022 18:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=AC=E5=8F=91=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E5=90=8Cid=E8=AF=84=E8=AE=BA=E5=8C=BA?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/index.html b/static/index.html index 2956e7c..ccc9479 100644 --- a/static/index.html +++ b/static/index.html @@ -299,7 +299,7 @@ 回复${status.replies_count} -
+
@@ -320,7 +320,7 @@ } function get_comments(sid) { - let coll = $(`#collapse-${sid}`); + let coll = $(`.comment-list-wrapper[data-sid="${sid}"`); if (coll.hasClass('show')) { coll.collapse('hide'); } else { @@ -331,7 +331,7 @@ function (data) { coll.find('> .comment-list').empty(); data.descendants.forEach( (rp) => { - let parent_coll = $(`#collapse-${rp.in_reply_to_id}`); + let parent_coll = $(`.comment-list-wrapper[data-sid="${rp.in_reply_to_id}"`); parent_coll.collapse('show'); parent_coll.find('> .comment-list').append(make_status_box_html(rp)); });