all repos — honk @ 0fefd080a1f248b0437c4228d0f0a3084338ae61

my fork of honk

few more fixes for lehonkform
Ted Unangst tedu@tedunangst.com
Sun, 20 Oct 2019 15:23:41 -0400
commit

0fefd080a1f248b0437c4228d0f0a3084338ae61

parent

001638a456dbc02405e8353bcace18e159b4dbd7

2 files changed, 4 insertions(+), 2 deletions(-)

jump to
M views/honkform.htmlviews/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.jsviews/honkpage.js

@@ -246,6 +246,8 @@ } else {

ridinput.value = "" honknoise.value = "" } + var updateinput = document.getElementById("updatexidinput") + updateinput.value = "" document.getElementById("honknoise").focus() return false }