Commit 5ecea463 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

there was a need to close edit-project dialog twice

parent eca47d9f
...@@ -7,6 +7,8 @@ minerva (12.3.1~beta.1) unstable; urgency=low ...@@ -7,6 +7,8 @@ minerva (12.3.1~beta.1) unstable; urgency=low
* Bug fix: list of availbale annotators is sorted alphabetically (#815) * Bug fix: list of availbale annotators is sorted alphabetically (#815)
* Bug fix: protein types are sorted properly in "Select valid annotations" * Bug fix: protein types are sorted properly in "Select valid annotations"
dialog (#815) dialog (#815)
* 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 minerva (13.1.0~beta.0) unstable; urgency=low
* Feature: annotators are more flexible - you can define set of input and * Feature: annotators are more flexible - you can define set of input and
......
...@@ -1018,6 +1018,10 @@ EditProjectDialog.prototype.open = function () { ...@@ -1018,6 +1018,10 @@ EditProjectDialog.prototype.open = function () {
width: window.innerWidth * 0.75, width: window.innerWidth * 0.75,
height: window.innerHeight / 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"); $(div).dialog("open");
}; };
......
...@@ -625,6 +625,10 @@ EditUserDialog.prototype.open = function () { ...@@ -625,6 +625,10 @@ EditUserDialog.prototype.open = function () {
width: window.innerWidth / 2, width: window.innerWidth / 2,
height: window.innerHeight / 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"); $(div).dialog("open");
}; };
......
Markdown is supported
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