Mercurial Hosting > chat
comparison src/index.html.luan @ 23:c54c806fcc6e
add delete_post
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 05 Nov 2024 16:09:10 -0700 |
parents | 5a56297713a3 |
children | af41be2dcdec |
comparison
equal
deleted
inserted
replaced
22:949914955bfe | 23:c54c806fcc6e |
---|---|
110 <div buttons> | 110 <div buttons> |
111 <button cancel onclick="closeModal(this)">Cancel</button> | 111 <button cancel onclick="closeModal(this)">Cancel</button> |
112 <button go onclick="doDeleteChat(this)">Delete</button> | 112 <button go onclick="doDeleteChat(this)">Delete</button> |
113 </div> | 113 </div> |
114 </dialog> | 114 </dialog> |
115 <dialog delete_post> | |
116 <h2>Delete Message</h2> | |
117 <p>Are you sure that you want to delete this message?</p> | |
118 <div buttons> | |
119 <button cancel onclick="closeModal(this)">Cancel</button> | |
120 <button go onclick="doDeletePost(this)">Delete</button> | |
121 </div> | |
122 </dialog> | |
115 <script> | 123 <script> |
116 <% | 124 <% |
117 if selected ~= nil then | 125 if selected ~= nil then |
118 %> | 126 %> |
119 let div = document.querySelector('div[chat="<%=selected.id%>"]'); | 127 let div = document.querySelector('div[chat="<%=selected.id%>"]'); |