diff --git a/CHANGELOG b/CHANGELOG index 71510373a87174cd4c22c6c6e492264a79a69fbe..3c08eb6f1884d49b5107c260cb0ecb36cce60904 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/frontend-js/src/main/js/gui/AddOverlayDialog.js b/frontend-js/src/main/js/gui/AddOverlayDialog.js index 5fff0a74a24f93d0e8dedc1227d98d7af8aa1459..f860127ded2f141821f87ad83edc94ec3b74a559 100644 --- a/frontend-js/src/main/js/gui/AddOverlayDialog.js +++ b/frontend-js/src/main/js/gui/AddOverlayDialog.js @@ -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());