Skip to content
Snippets Groups Projects
Commit f9556749 authored by juanf's avatar juanf
Browse files

BIS-627 / SP-1141: ELN UI - Improve Workspace Uploader (Fix deleting when uploading)

SVN: 30603
parent 5aaeb4ef
No related branches found
No related tags found
No related merge requests found
...@@ -269,9 +269,13 @@ var Uploader = new function () { ...@@ -269,9 +269,13 @@ var Uploader = new function () {
"<span id=\"speed-" + id + "\">? KB/s</span>)" + "<span id=\"speed-" + id + "\">? KB/s</span>)" +
"</li>"); "</li>");
$("#delete-"+id).click(function() { $("#delete-"+id).click(function() {
var fileData = file; if(!progress[id]) {
$( "#upload-"+id).remove(); var fileData = file;
settings.ondelete(fileData); $( "#upload-"+id).remove();
settings.ondelete(fileData);
} else {
alert("The upload is in progress, please wait.");
}
}); });
$("#upload-" + id).addClass("starting"); $("#upload-" + id).addClass("starting");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment