Skip to content
Snippets Groups Projects
Commit 2f7a2aac authored by Piotr Gawron's avatar Piotr Gawron
Browse files

allow to reupload data overlay file without closing dialog

parent 5d252147
No related branches found
No related tags found
2 merge requests!805Merge 13.1.0 beta.1,!800Resolve "reuploading of an overlay and incorrect error thrown"
Pipeline #10538 canceled
......@@ -9,6 +9,8 @@ minerva (12.3.1~beta.1) unstable; urgency=low
* Bug fix: invisible layer shouldn't be shown in the on th map (#813)
* Bug fix: list of availbale annotators is sorted alphabetically (#815)
* Bug fix: redirect url from export panel is fixed (#819)
* Bug fix: allow to reupload the same file without closing add overlay dialog
(#833)
* Bug fix: protein types are sorted properly in "Select valid annotations"
dialog (#815)
* Bug fix: if there is a description of (sub)map then it is available in
......
......@@ -94,7 +94,9 @@ AddOverlayDialog.prototype.createGui = function () {
name: "overlay-file"
});
fileInput.addEventListener("change", function () {
return self.processFile(fileInput.files[0]).then(null, GuiConnector.alert);
return self.processFile(fileInput.files[0]).then(function () {
$(fileInput).val("");
}).catch(GuiConnector.alert);
}, false);
content.appendChild(fileInput);
content.appendChild(guiUtils.createNewLine());
......
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