Commit 0cb68b86 by Torkel Ödegaard

refactor(): minor change

parent 723be4f6
......@@ -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) {
......
......@@ -12,11 +12,6 @@ function (_, $, coreModule) {
var lastHideControlsVal;
// tooltip removal fix
$scope.$on("$routeChangeSuccess", function() {
$("#tooltip, .tooltip").remove();
});
$scope.$watch('dashboard.hideControls', function() {
if (!$scope.dashboard) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment