From bc0378b5944b491a8ca2a3202e927957580ad084 Mon Sep 17 00:00:00 2001 From: jstirling91 Date: Tue, 24 Nov 2015 15:53:50 -0500 Subject: [PATCH] fix bug with double upload --- modules/imaging_uploader/js/imaging_uploader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imaging_uploader/js/imaging_uploader.js b/modules/imaging_uploader/js/imaging_uploader.js index 441747e9863..2f3b47ef3e8 100644 --- a/modules/imaging_uploader/js/imaging_uploader.js +++ b/modules/imaging_uploader/js/imaging_uploader.js @@ -131,7 +131,6 @@ function uploadFile() { document.write(data); document.close(); } else { - $("fileUpload").val(""); $("#filter").click(); } } @@ -147,6 +146,7 @@ $(function () { $(".submit-button").click( function (e){ if(e.currentTarget.id === "filter"){ + $("input[name=mri_file]").val(""); $("#mri_upload").submit(); } else if (e.currentTarget.id === "upload"){ e.preventDefault();