From f27f7c6961ab4896f3030e86f404160743e02b52 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Thu, 12 Jun 2014 17:11:01 -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/Home.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/awx/ui/static/js/controllers/Home.js b/awx/ui/static/js/controllers/Home.js index 385ac067a6..e59aa63de6 100644 --- a/awx/ui/static/js/controllers/Home.js +++ b/awx/ui/static/js/controllers/Home.js @@ -155,6 +155,14 @@ function HomeGroups($log, $scope, $filter, $compile, $location, $routeParams, Lo 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() {