From e26349ebfac8036d62d1ae106d89fccd3a2242d7 Mon Sep 17 00:00:00 2001 From: CaoWangrenbo Date: Mon, 27 Oct 2025 14:52:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A0=8F=E9=97=AE=E9=A2=98(=E6=9C=AA=E9=AA=8C=E8=AF=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/list_images.html | 79 +++++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 35 deletions(-) diff --git a/templates/list_images.html b/templates/list_images.html index 1a15cf7..fca9c68 100644 --- a/templates/list_images.html +++ b/templates/list_images.html @@ -174,42 +174,51 @@ // Timestamp row.insertCell(4).textContent = new Date(image.timestamp * 1000).toISOString(); - // 评论 - row += ``; + // Comment + const commentCell = row.insertCell(5); + const commentInput = document.createElement('input'); + commentInput.type = 'text'; + commentInput.id = `comment-${image.id}`; + commentInput.value = image.comment || ''; + commentInput.onchange = function() { + updateComment(image.id, this.value); + }; + commentCell.appendChild(commentInput); + // Actions - row += ` - - - - - - - - - `; - row += ''; + const actionsCell = row.insertCell(6); + actionsCell.innerHTML = ` + + + + + + + + + `; }); }