few more fixes for lehonkform
This commit is contained in:
parent
e4110ecbb8
commit
c8d2d4d33e
|
@ -1,8 +1,8 @@
|
||||||
<p id="honkformhost">
|
<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 }}>
|
<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="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 }}">
|
<input type="hidden" name="rid" id="ridinput" value="{{ .InReplyTo }}">
|
||||||
<h3>let's make some noise</h3>
|
<h3>let's make some noise</h3>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -246,6 +246,8 @@ function showhonkform(elem, rid, hname) {
|
||||||
ridinput.value = ""
|
ridinput.value = ""
|
||||||
honknoise.value = ""
|
honknoise.value = ""
|
||||||
}
|
}
|
||||||
|
var updateinput = document.getElementById("updatexidinput")
|
||||||
|
updateinput.value = ""
|
||||||
document.getElementById("honknoise").focus()
|
document.getElementById("honknoise").focus()
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue