X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2Fjs%2Fapp.js;h=f207de677c914cfae4072abffd8a15b1d57b6c4e;hb=e41fd8d870087dafded21050f7895bb179060b2f;hp=6017d25f1cec740943d3cb97ddfb69d41ec0ae18;hpb=0cce5096940c6b5e31a2e9dce849deb79d9844ce;p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git 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() { }); }); + // reset the form first to make the change handler retrigger even on the same file selected + $('#fileUploadForm')[0].reset(); + app.$els.upload.click(); }