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

there was a need to close edit-project dialog twice

parent 51f43815
No related branches found
No related tags found
2 merge requests!805Merge 13.1.0 beta.1,!796there was a need to close edit-project dialog twice
Pipeline #10529 canceled
......@@ -7,8 +7,10 @@ minerva (12.3.1~beta.1) unstable; urgency=low
* Bug fix: list of availbale annotators is sorted alphabetically (#815)
* 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
* Bug fix: if there is a description of (sub)map then it is available in
info/submap panel (#824)
* Bug fix: when changing data in edit user dialog there was a need to click
close button twice (#818)
minerva (13.1.0~beta.0) unstable; urgency=low
* Feature: annotators are more flexible - you can define set of input and
......
......@@ -1018,6 +1018,10 @@ EditProjectDialog.prototype.open = function () {
width: window.innerWidth * 0.75,
height: window.innerHeight / 2
});
$(".ui-dialog-titlebar-close", $(div).dialog().siblings('.ui-dialog-titlebar')).on("mousedown", function () {
//we need to close dialog on mouse down, because processing modal dialogs prevents the click to finish happening
$(div).dialog("close");
});
}
$(div).dialog("open");
};
......
......@@ -625,6 +625,10 @@ EditUserDialog.prototype.open = function () {
width: window.innerWidth / 2,
height: window.innerHeight / 2
});
$(".ui-dialog-titlebar-close", $(div).dialog().siblings('.ui-dialog-titlebar')).on("mousedown", function () {
//we need to close dialog on mouse down, because processing modal dialogs prevents the click to finish happening
$(div).dialog("close");
});
}
$(div).dialog("open");
};
......
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