mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
fix regression where clicking inside popover closed it
This commit is contained in:
@@ -873,7 +873,7 @@ function(SettingsUtils, i18n, $rootScope) {
|
|||||||
id_to_close = "";
|
id_to_close = "";
|
||||||
|
|
||||||
if (element[0].id) {
|
if (element[0].id) {
|
||||||
template = '<div id="' + element[0].id + '_popover_container" class="popover" role="tooltip"><div class="arrow"></div><h3 id="' + element[0].id + '_popover_title" class="popover-header" translate></h3><div id="' + element[0].id + '_popover_content" class="popover-body" translate></div></div>';
|
template = '<div id="' + element[0].id + '_popover_container" class="popover" role="tooltip"><div class="arrow"></div><span id="' + element[0].id + '_popover_container"><h3 id="' + element[0].id + '_popover_title" class="popover-header" translate></h3><div id="' + element[0].id + '_popover_content" class="popover-body" translate></div></span></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
scope.triggerPopover = function(e) {
|
scope.triggerPopover = function(e) {
|
||||||
@@ -911,6 +911,7 @@ function(SettingsUtils, i18n, $rootScope) {
|
|||||||
|
|
||||||
function bindPopoverDismiss() {
|
function bindPopoverDismiss() {
|
||||||
$('body').one('click.popover' + id_to_close, function(e) {
|
$('body').one('click.popover' + id_to_close, function(e) {
|
||||||
|
debugger;
|
||||||
if ($(e.target).parents(id_to_close).length === 0) {
|
if ($(e.target).parents(id_to_close).length === 0) {
|
||||||
// case: you clicked to open the popover and then you
|
// case: you clicked to open the popover and then you
|
||||||
// clicked outside of it...hide it.
|
// clicked outside of it...hide it.
|
||||||
|
|||||||
Reference in New Issue
Block a user