Commit 3ab9c877 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '818-need-to-close-edit-project' into 'devel_13.1.x'

there was a need to close edit-project dialog twice

See merge request !796
parents 51f43815 80b9bd0a
......@@ -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");
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment