diff 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
line wrap: on
line diff
--- a/src/index.html.luan	Tue Nov 05 16:09:10 2024 -0700
+++ b/src/index.html.luan	Tue Nov 05 19:45:08 2024 -0700
@@ -120,6 +120,14 @@
 				<button go onclick="doDeletePost(this)">Delete</button>
 			</div>
 		</dialog>
+		<dialog edit_post>
+			<h2>Edit Message</h2>
+			<p><textarea onfocus="fixTextarea(event)" oninput="fixTextarea(event)"></textarea></p>
+			<div buttons>
+				<button cancel onclick="closeModal(this)">Cancel</button>
+				<button go onclick="savePost(this)">Save</button>
+			</div>
+		</dialog>
 		<script>
 <%
 	if selected ~= nil then