From 99506c9362e07ec820c9aad8cd6c886a240dee7d Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Mon, 7 Aug 2017 11:18:04 -0400 Subject: [PATCH] Hide all active popovers while source-summary-tooltip is active --- awx/ui/client/src/shared/directives.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index 884b00dc9d..c244adbf23 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -822,7 +822,13 @@ function(ConfigurationUtils, i18n, $rootScope) { template = ''; // This block helps clean up tooltips that may get orphaned by a click event - $(element).on('mouseenter', function() { + $(element).on('mouseenter', function(event) { + + var elem = $(event.target).parent(); + if (elem[0].nodeName === "SOURCE-SUMMARY-POPOVER") { + $('.popover').popover('hide'); + } + if (stateChangeWatcher) { // Un-bind - we don't want a bunch of listeners firing stateChangeWatcher();