aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/index.html6
-rw-r--r--app/js/app.js3
2 files changed, 7 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>
diff --git a/app/js/app.js b/app/js/app.js
index 6017d25..f207de6 100644
--- a/app/js/app.js
+++ b/app/js/app.js
@@ -143,6 +143,9 @@ function upload() {
143 }); 143 });
144 }); 144 });
145 145
146 // reset the form first to make the change handler retrigger even on the same file selected
147 $('#fileUploadForm')[0].reset();
148
146 app.$els.upload.click(); 149 app.$els.upload.click();
147} 150}
148 151