all repos — honk @ a6f22b5cf327ef39fbb7ee4d976cb7cfbd61d631

my fork of honk

fix honk submit
Anirudh Oppiliappan x@icyphox.sh
Wed, 10 Jul 2024 15:02:17 +0300
commit

a6f22b5cf327ef39fbb7ee4d976cb7cfbd61d631

parent

1a6d7ff9a8960ce83b3ec36be42317fe5f2ef88d

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

jump to
M views/honkform.htmlviews/honkform.html

@@ -11,7 +11,7 @@ <summary>more options</summary>

<p> <label class=button id="donker">attach: <input id="donkinput" type="file" multiple name="donk"><span>{{ .SavedFile }}</span></label><input type="hidden" id="saveddonkxid" name="donkxid" value="{{ .SavedFile }}"> <p id="donkdescriptor"><label for=donkdesc>description:</label><br> -<input type="text" name="donkdesc" value="{{ .DonkDesc }}" autocomplete=off> +<input type="text" name="donkdesc" value="{{ .DonkDesc }}"> {{ with .SavedPlace }} <p><button id=checkinbutton type=button>assassination coordinates</button> <div id=placedescriptor>
M views/honkpage.jsviews/honkpage.js

@@ -357,9 +357,9 @@ var form = lehonkform

var donker = document.getElementById("donker") var honknoise = document.getElementById("honknoise") var forminput = document.getElementById("donkinput") - forminput.addEventListener('change', () => { - form.submit(); - }); + // forminput.addEventListener('change', () => { + // form.submit(); + // }); honknoise.addEventListener('paste', e => { forminput.files = e.clipboardData.files