mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
Remove lingering popovers/tooltips
Before displaying a new popover or tooltip, kill anything that might still be open.
This commit is contained in:
parent
34604d47d3
commit
f27f7c6961
@ -155,6 +155,14 @@ function HomeGroups($log, $scope, $filter, $compile, $location, $routeParams, Lo
|
||||
catch(err) {
|
||||
//ignore
|
||||
}
|
||||
$('.popover').each(function() {
|
||||
// remove lingering popover <div>. Seems to be a bug in TB3 RC1
|
||||
$(this).remove();
|
||||
});
|
||||
$('.tooltip').each( function() {
|
||||
// close any lingering tool tipss
|
||||
$(this).hide();
|
||||
});
|
||||
elem.attr({ "aw-pop-over": html, "data-title": title, "data-placement": "right" });
|
||||
$compile(elem)(scope);
|
||||
elem.on('shown.bs.popover', function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user