refactor(): minor change
This commit is contained in:
1 parent
723be4f612
commit
0cb68b86fc
2 files changed
+5
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user