Mercurial Hosting > chat
comparison src/chat.html.luan @ 20:dade6a560494
add dialogs
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Mon, 04 Nov 2024 21:37:58 -0700 |
| parents | 7230c821c368 |
| children |
comparison
equal
deleted
inserted
replaced
| 19:435f474f07c7 | 20:dade6a560494 |
|---|---|
| 102 <div chats> | 102 <div chats> |
| 103 <% chats_html() %> | 103 <% chats_html() %> |
| 104 </div> | 104 </div> |
| 105 <div posts></div> | 105 <div posts></div> |
| 106 </div> | 106 </div> |
| 107 <dialog delete_chat> | |
| 108 <h2>Delete Chat</h2> | |
| 109 <p>Are you sure that you want to delete this chat?</p> | |
| 110 <div buttons> | |
| 111 <button cancel onclick="closeModal(this)">Cancel</button> | |
| 112 <button go onclick="doDeleteChat(this)">Delete</button> | |
| 113 </div> | |
| 114 </dialog> | |
| 107 <script> | 115 <script> |
| 108 <% | 116 <% |
| 109 if selected ~= nil then | 117 if selected ~= nil then |
| 110 %> | 118 %> |
| 111 let div = document.querySelector('div[chat="<%=selected.id%>"]'); | 119 let div = document.querySelector('div[chat="<%=selected.id%>"]'); |
