Mercurial Hosting > chat
comparison src/index.html.luan @ 24:af41be2dcdec
add edit_post
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 05 Nov 2024 19:45:08 -0700 |
| parents | c54c806fcc6e |
| children | 809193524522 |
comparison
equal
deleted
inserted
replaced
| 23:c54c806fcc6e | 24:af41be2dcdec |
|---|---|
| 118 <div buttons> | 118 <div buttons> |
| 119 <button cancel onclick="closeModal(this)">Cancel</button> | 119 <button cancel onclick="closeModal(this)">Cancel</button> |
| 120 <button go onclick="doDeletePost(this)">Delete</button> | 120 <button go onclick="doDeletePost(this)">Delete</button> |
| 121 </div> | 121 </div> |
| 122 </dialog> | 122 </dialog> |
| 123 <dialog edit_post> | |
| 124 <h2>Edit Message</h2> | |
| 125 <p><textarea onfocus="fixTextarea(event)" oninput="fixTextarea(event)"></textarea></p> | |
| 126 <div buttons> | |
| 127 <button cancel onclick="closeModal(this)">Cancel</button> | |
| 128 <button go onclick="savePost(this)">Save</button> | |
| 129 </div> | |
| 130 </dialog> | |
| 123 <script> | 131 <script> |
| 124 <% | 132 <% |
| 125 if selected ~= nil then | 133 if selected ~= nil then |
| 126 %> | 134 %> |
| 127 let div = document.querySelector('div[chat="<%=selected.id%>"]'); | 135 let div = document.querySelector('div[chat="<%=selected.id%>"]'); |
