Mercurial Hosting > freedit
diff src/thread.html.luan @ 49:f225e82b2bf8
add code bbcode
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 17 Nov 2022 16:46:21 -0700 |
parents | 289718f121e4 |
children | 78b2d6995244 |
line wrap: on
line diff
--- a/src/thread.html.luan Thu Nov 17 00:11:44 2022 -0700 +++ b/src/thread.html.luan Thu Nov 17 16:46:21 2022 -0700 @@ -53,10 +53,6 @@ span[ago] { color: #888; } - [message] { - white-space: pre-wrap; - line-height: 1.4; - } <% if user_name == nil then %> [logged_in] { display: none; @@ -102,7 +98,7 @@ function updated(postId,html) { let postDiv = document.querySelector('[post="'+postId+'"]'); if(postDiv) - postDiv.querySelector('[message]').innerHTML = html; + postDiv.querySelector('[from_bbcode]').outerHTML = html; } function newPost() {