Mercurial Hosting > chat
comparison src/chat.js @ 84:83fb90276334
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 11 Mar 2025 14:11:12 -0600 |
parents | a47036fd0158 |
children | 7b339b1ccd11 |
comparison
equal
deleted
inserted
replaced
83:a47036fd0158 | 84:83fb90276334 |
---|---|
64 let reply = document.querySelector('div[reply]').getAttribute('reply'); | 64 let reply = document.querySelector('div[reply]').getAttribute('reply'); |
65 if( reply ) | 65 if( reply ) |
66 url += `&reply=${reply}`; | 66 url += `&reply=${reply}`; |
67 ajax(url,`content=${encodeURIComponent(text)}`); | 67 ajax(url,`content=${encodeURIComponent(text)}`); |
68 textarea.value = ''; | 68 textarea.value = ''; |
69 textarea.style.height = 'initial'; | |
69 closeReply(); | 70 closeReply(); |
70 } | 71 } |
71 | 72 |
72 function textareaKey(event) { | 73 function textareaKey(event) { |
73 if( event.keyCode===13 && !event.shiftKey && !event.ctrlKey && !isMobile ) { | 74 if( event.keyCode===13 && !event.shiftKey && !event.ctrlKey && !isMobile ) { |