From 7a95451288c3e90d272736bd2e7edcd974218c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 6 Apr 2015 11:42:50 +0200 Subject: [PATCH] Fixed graph tooltip lingering when changing dashboard using keyboard, Fixes #1700 --- public/app/directives/bodyClass.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/public/app/directives/bodyClass.js b/public/app/directives/bodyClass.js index 20339b8bf92..d0274aca6b2 100644 --- a/public/app/directives/bodyClass.js +++ b/public/app/directives/bodyClass.js @@ -1,8 +1,9 @@ define([ 'angular', - 'lodash' + 'lodash', + 'jquery' ], -function (angular, _) { +function (angular, _, $) { 'use strict'; angular @@ -13,6 +14,11 @@ function (angular, _) { var lastHideControlsVal; + // tooltip removal fix + $scope.$on("$routeChangeSuccess", function() { + $("#tooltip").remove(); + }); + $scope.$watch('submenuEnabled', function() { if (!$scope.dashboard) { return;