mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
More fixes related to shared crosshair #880
This commit is contained in:
parent
d77448d84e
commit
c79ab84fdf
@ -28,7 +28,6 @@ function (angular, $, kbn, moment, _, graphTooltip) {
|
||||
}
|
||||
|
||||
if(dashboard.sharedCrosshair) {
|
||||
console.log("setCrosshair");
|
||||
var plot = elem.data().plot;
|
||||
if (plot) {
|
||||
plot.setCrosshair({ x: info.pos.x, y: info.pos.y });
|
||||
@ -38,7 +37,9 @@ function (angular, $, kbn, moment, _, graphTooltip) {
|
||||
|
||||
scope.onAppEvent('clearCrosshair', function() {
|
||||
var plot = elem.data().plot;
|
||||
if (plot) {
|
||||
plot.clearCrosshair();
|
||||
}
|
||||
});
|
||||
|
||||
scope.$on('refresh', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user