Mercurial Hosting > chat
diff src/chat.js @ 20:dade6a560494
add dialogs
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 Nov 2024 21:37:58 -0700 |
parents | 435f474f07c7 |
children | 949914955bfe |
line wrap: on
line diff
--- a/src/chat.js Mon Nov 04 19:23:38 2024 -0700 +++ b/src/chat.js Mon Nov 04 21:37:58 2024 -0700 @@ -75,6 +75,12 @@ } function deleteChat() { + let dialog = document.querySelector('dialog[delete_chat]'); + openModal(dialog); +} + +function doDeleteChat(el) { + closeModal(el); ajax(`delete_chat.js?chat=${currentChatId}`); }