mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Typo
This commit is contained in:
@@ -2,7 +2,7 @@ define([
|
||||
'jquery',
|
||||
'lodash'
|
||||
],
|
||||
function ($, _) {
|
||||
function ($) {
|
||||
'use strict';
|
||||
|
||||
function GraphTooltip(elem, dashboard, scope, getSeriesFn) {
|
||||
@@ -17,7 +17,8 @@ function ($, _) {
|
||||
var initial = last*ps;
|
||||
var len = series.datapoints.points.length;
|
||||
for (var j = initial; j < len; j += ps) {
|
||||
if ((series.datapoints.points[initial] != null && series.datapoints.points[j] == null && ! series.lines.steps) || series.datapoints.points[j] > posX) {
|
||||
if ((series.datapoints.points[initial] != null && series.datapoints.points[j] == null && ! series.lines.steps)
|
||||
|| series.datapoints.points[j] > posX) {
|
||||
return Math.max(j - ps, 0)/ps;
|
||||
}
|
||||
}
|
||||
@@ -171,7 +172,9 @@ function ($, _) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! distance || (hoverInfo.distance >=0 && (hoverInfo.distance < distance || distance < 0)) || (hoverInfo.distance < 0 && hoverInfo.distance > distance)) {
|
||||
if (! distance
|
||||
|| (hoverInfo.distance >=0 && (hoverInfo.distance < distance || distance < 0))
|
||||
|| (hoverInfo.distance < 0 && hoverInfo.distance > distance)) {
|
||||
distance = hoverInfo.distance;
|
||||
time = hoverInfo.time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user