comparison src/edit.js.luan @ 18:94e26bffd4fb

UI work
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 11 Jul 2022 12:14:05 -0600
parents 0edde02b908c
children da006d1c1eba
comparison
equal deleted inserted replaced
17:a602a5735a37 18:94e26bffd4fb
27 Io.stdout = Http.response.text_writer() 27 Io.stdout = Http.response.text_writer()
28 %> 28 %>
29 let postDiv = document.querySelector('[post="<%=post.id%>"]'); 29 let postDiv = document.querySelector('[post="<%=post.id%>"]');
30 postDiv.querySelector('[output]').style.display = 'none'; 30 postDiv.querySelector('[output]').style.display = 'none';
31 postDiv.querySelector('[edit]').innerHTML = <%= json_string(html) %>; 31 postDiv.querySelector('[edit]').innerHTML = <%= json_string(html) %>;
32 postDiv.querySelector('textarea').focus();
32 <% 33 <%
33 end 34 end