aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/index.html
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2016-05-03 14:53:57 +0200
committerJohannes Zellner <johannes@nebulon.de>2016-05-03 14:53:57 +0200
commite41fd8d870087dafded21050f7895bb179060b2f (patch)
tree9ffad758aaed544076e880043cddea8bec856fa0 /app/index.html
parent0cce5096940c6b5e31a2e9dce849deb79d9844ce (diff)
downloadSurfer-e41fd8d870087dafded21050f7895bb179060b2f.tar.gz
Surfer-e41fd8d870087dafded21050f7895bb179060b2f.tar.zst
Surfer-e41fd8d870087dafded21050f7895bb179060b2f.zip
Clear the file input prior to triggering it
This ensures the change event is fired even if the file didn't change Fixes #2
Diffstat (limited to 'app/index.html')
-rw-r--r--app/index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/index.html b/app/index.html
index adb7591..93fa57e 100644
--- a/app/index.html
+++ b/app/index.html
@@ -107,8 +107,10 @@
107 <div class="row"> 107 <div class="row">
108 <div class="col-lg-12"> 108 <div class="col-lg-12">
109 <center> 109 <center>
110 <input type='file' v-el:upload style="display: none" id="uploadInput"/> 110 <form id="fileUploadForm">
111 <button class="btn btn-primary" v-on:click="upload()" id="uploadButton">Upload</button> 111 <input type="file" v-el:upload style="display: none" id="uploadInput"/>
112 <button class="btn btn-primary" v-on:click="upload()" id="uploadButton">Upload</button>
113 </form>
112 </center> 114 </center>
113 <br/> 115 <br/>
114 </div> 116 </div>