Mercurial Hosting > chat
comparison 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 |
comparison
equal
deleted
inserted
replaced
19:435f474f07c7 | 20:dade6a560494 |
---|---|
73 div.removeAttribute('fix'); | 73 div.removeAttribute('fix'); |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 function deleteChat() { | 77 function deleteChat() { |
78 let dialog = document.querySelector('dialog[delete_chat]'); | |
79 openModal(dialog); | |
80 } | |
81 | |
82 function doDeleteChat(el) { | |
83 closeModal(el); | |
78 ajax(`delete_chat.js?chat=${currentChatId}`); | 84 ajax(`delete_chat.js?chat=${currentChatId}`); |
79 } | 85 } |
80 | 86 |
81 function added(html) { | 87 function added(html) { |
82 let input = document.querySelector('div[input]'); | 88 let input = document.querySelector('div[input]'); |