mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Remove lingering popovers/tooltips
Before displaying a new popover or tooltip, kill anything that might still be open.
This commit is contained in:
@@ -38,6 +38,14 @@ function InventoriesList($scope, $rootScope, $location, $log, $routeParams, $com
|
|||||||
catch(err) {
|
catch(err) {
|
||||||
//ignore
|
//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" });
|
elem.attr({ "aw-pop-over": html, "data-title": title, "data-placement": "right" });
|
||||||
$compile(elem)($scope);
|
$compile(elem)($scope);
|
||||||
elem.on('shown.bs.popover', function() {
|
elem.on('shown.bs.popover', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user