Skip to content

Commit

Permalink
Merge pull request #1437 from jstirling91/imaging_uploader_double
Browse files Browse the repository at this point in the history
fix bug with double upload
  • Loading branch information
driusan committed Nov 26, 2015
2 parents f372b0f + bc0378b commit fe3bac7
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 fe3bac7

Please # to comment.