Skip to content

Commit

Permalink
fix bug with double upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jstirling91 committed Nov 24, 2015
1 parent f372b0f commit bc0378b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/imaging_uploader/js/imaging_uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ function uploadFile() {
document.write(data);
document.close();
} else {
$("fileUpload").val("");
$("#filter").click();
}
}
Expand All @@ -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();
Expand Down

0 comments on commit bc0378b

Please # to comment.