mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
Merge pull request #202 from marshmalien/fix/7201-hide-inv-tooltip
Hide all active popovers while source-summary-tooltip is active
This commit is contained in:
@@ -822,7 +822,13 @@ function(ConfigurationUtils, i18n, $rootScope) {
|
|||||||
template = '<div class="tooltip Tooltip ' + tooltipOuterClass + '" role="tooltip"><div class="tooltip-arrow Tooltip-arrow"></div><div class="tooltip-inner Tooltip-inner ' + tooltipInnerClass + '"></div></div>';
|
template = '<div class="tooltip Tooltip ' + tooltipOuterClass + '" role="tooltip"><div class="tooltip-arrow Tooltip-arrow"></div><div class="tooltip-inner Tooltip-inner ' + tooltipInnerClass + '"></div></div>';
|
||||||
|
|
||||||
// This block helps clean up tooltips that may get orphaned by a click event
|
// 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) {
|
if (stateChangeWatcher) {
|
||||||
// Un-bind - we don't want a bunch of listeners firing
|
// Un-bind - we don't want a bunch of listeners firing
|
||||||
stateChangeWatcher();
|
stateChangeWatcher();
|
||||||
|
|||||||
Reference in New Issue
Block a user