refactor(): minor change

This commit is contained in:
Torkel Ödegaard
2016-01-17 17:24:10 +01:00
parent 723be4f612
commit 0cb68b86fc
2 changed files with 5 additions and 5 deletions

View File

@@ -158,6 +158,11 @@ export function grafanaAppDirective() {
}
});
// tooltip removal fix
scope.$on("$routeChangeSuccess", function() {
$("#tooltip, .tooltip").remove();
});
// handle document clicks that should hide things
elem.click(function(evt) {
if ($(evt.target).parents().length === 0) {