mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fixed problems with show data contextual in graphs. Tiquet: #3057
(cherry picked from commit 2b294df108f95d3562fc6b87f7eea0bd3431cccc)
This commit is contained in:
parent
aba0f2afc2
commit
c2309e52c3
@ -467,8 +467,8 @@ var previousPoint = null, previousLabel = null;
|
||||
$.fn.HUseTooltip = function () {
|
||||
$(this).bind("plothover", function (event, pos, item) {
|
||||
if (item) {
|
||||
if ((previousLabel != item.series.label) || (previousPoint != item.dataIndex)) {
|
||||
previousPoint = item.dataIndex;
|
||||
if ((previousLabel != item.series.label) || (previousPoint != item.seriesIndex)) {
|
||||
previousPoint = item.seriesIndex;
|
||||
previousLabel = item.series.label;
|
||||
$("#tooltip").remove();
|
||||
|
||||
@ -491,8 +491,8 @@ $.fn.HUseTooltip = function () {
|
||||
$.fn.VUseTooltip = function () {
|
||||
$(this).bind("plothover", function (event, pos, item) {
|
||||
if (item) {
|
||||
if ((previousLabel != item.series.label) || (previousPoint != item.dataIndex)) {
|
||||
previousPoint = item.dataIndex;
|
||||
if ((previousLabel != item.series.label) || (previousPoint != item.seriesIndex)) {
|
||||
previousPoint = item.seriesIndex;
|
||||
previousLabel = item.series.label;
|
||||
$("#tooltip").remove();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user