mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix history search popover not closing on click outside
This is only a partial fix, since the closing event will not be fired when clicking on the central panel
This commit is contained in:
@@ -152,6 +152,18 @@ function searchInput(parentNode, options) {
|
||||
.popover("show");
|
||||
});
|
||||
}
|
||||
// Hack to hide the advanced search popover when clicking outside
|
||||
$("body").on("click", function (e) {
|
||||
$('[data-toggle="advSearchPopover"]').each(function () {
|
||||
if (
|
||||
!$(this).is(e.target) &&
|
||||
$(this).has(e.target).length === 0 &&
|
||||
$(".popover").has(e.target).length === 0
|
||||
) {
|
||||
$(this).popover("hide");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// .................................................................... loadingIndicator rendering
|
||||
// a button for clearing the search bar, placed on the right hand side
|
||||
|
||||
Reference in New Issue
Block a user