Mercurial Hosting > chat
changeset 109:b86bb25fb416 default tip
reply fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 14 Sep 2025 15:58:52 -0600 |
parents | 2c85ae7b8a35 |
children | |
files | src/chat.css src/chat.js |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/chat.css Wed Sep 03 12:40:20 2025 -0600 +++ b/src/chat.css Sun Sep 14 15:58:52 2025 -0600 @@ -147,7 +147,7 @@ border-left: 1px solid #888888; padding-left: 8px; } -div[reply] a, +div[reply] a[when], div[quote] [when], div[quote] [deleted] { font-size: 12px;
--- a/src/chat.js Wed Sep 03 12:40:20 2025 -0600 +++ b/src/chat.js Sun Sep 14 15:58:52 2025 -0600 @@ -433,7 +433,7 @@ div.removeAttribute('hidden'); div.setAttribute('reply',postId); document.querySelector('div[reply] div[text]').innerHTML = document.querySelector(`div[post="${postId}"] div[text]`).innerHTML - let a = document.querySelector('div[reply] a'); + let a = document.querySelector('div[reply] a[when]'); a.href = `#p${postId}`; a.textContent = document.querySelector(`div[post="${postId}"] span[when]`).textContent; document.querySelector('div[input] textarea').focus();