few more fixes for lehonkform
Ted Unangst tedu@tedunangst.com
Sun, 20 Oct 2019 15:23:41 -0400
2 files changed,
4 insertions(+),
2 deletions(-)
M
views/honkform.html
→
views/honkform.html
@@ -1,8 +1,8 @@
<p id="honkformhost"> -<button id="honkingtime" onclick="return showhonkform();"><a href="/newhonk">it's honking time</a></button> +<button id="honkingtime" onclick="return showhonkform();" {{ if .IsPreview }}style="display:none"{{ end }}><a href="/newhonk">it's honking time</a></button> <form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" {{ if not .IsPreview }}style="display: none"{{ end }}> <input type="hidden" name="CSRF" value="{{ .HonkCSRF }}"> -<input type="hidden" name="updatexid" value = "{{ .UpdateXID }}"> +<input type="hidden" name="updatexid" id="updatexidinput" value = "{{ .UpdateXID }}"> <input type="hidden" name="rid" id="ridinput" value="{{ .InReplyTo }}"> <h3>let's make some noise</h3> <p>
M
views/honkpage.js
→
views/honkpage.js
@@ -246,6 +246,8 @@ } else {
ridinput.value = "" honknoise.value = "" } + var updateinput = document.getElementById("updatexidinput") + updateinput.value = "" document.getElementById("honknoise").focus() return false }