From 34604d47d3a0c07424c420bce563fb6174a022b8 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Thu, 12 Jun 2014 17:06:53 -0400 Subject: [PATCH] Remove lingering popovers/tooltips Before displaying a new popover or tooltip, kill anything that might still be open. --- awx/ui/static/js/controllers/Inventories.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/awx/ui/static/js/controllers/Inventories.js b/awx/ui/static/js/controllers/Inventories.js index 9f4a27fbd0..4b44585f8f 100644 --- a/awx/ui/static/js/controllers/Inventories.js +++ b/awx/ui/static/js/controllers/Inventories.js @@ -38,6 +38,14 @@ function InventoriesList($scope, $rootScope, $location, $log, $routeParams, $com catch(err) { //ignore } + $('.popover').each(function() { + // remove lingering popover
. 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() {