Mercurial Hosting > chat
comparison src/chat.js @ 11:563a5358f2ee
add delete_chat
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 31 Oct 2024 19:17:53 -0600 |
| parents | f9e6a4cc4f7d |
| children | 9f45d32670ae |
comparison
equal
deleted
inserted
replaced
| 10:f9e6a4cc4f7d | 11:563a5358f2ee |
|---|---|
| 44 for( let span of spans ) { | 44 for( let span of spans ) { |
| 45 span.textContent = new Date(Number(span.textContent)).toLocaleString(); | 45 span.textContent = new Date(Number(span.textContent)).toLocaleString(); |
| 46 span.removeAttribute('fix'); | 46 span.removeAttribute('fix'); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | |
| 50 function deleteChat() { | |
| 51 ajax(`delete_chat.js?chat=${currentChatId}`); | |
| 52 } |
