From 7a740ee490f7de13be74065d8b51af30246e8fc1 Mon Sep 17 00:00:00 2001 From: Jairus Martin Date: Wed, 12 Feb 2014 13:39:32 -0500 Subject: [PATCH] Removed unnecessary div --- xadmin/static/xadmin/js/xadmin.plugin.charts.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xadmin/static/xadmin/js/xadmin.plugin.charts.js b/xadmin/static/xadmin/js/xadmin.plugin.charts.js index 099853375..8eeca812b 100644 --- a/xadmin/static/xadmin/js/xadmin.plugin.charts.js +++ b/xadmin/static/xadmin/js/xadmin.plugin.charts.js @@ -1,7 +1,7 @@ $(document).ready(function(){ - + function showTooltip(x, y, contents) { - $('
' + contents + '
').css( { + $('
' + contents + '
').css( { position: 'absolute', display: 'none', top: y + 5, @@ -24,7 +24,7 @@ $(document).ready(function(){ if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; - + $("#chart-tooltip").remove(); var x = item.series.xaxis.tickFormatter(item.datapoint[0], item.series.xaxis), y = item.series.yaxis.tickFormatter(item.datapoint[1], item.series.yaxis); @@ -35,11 +35,11 @@ $(document).ready(function(){ y = item.series.data[item.dataIndex][1]; } showTooltip(item.pageX, item.pageY, - item.series.label + " :
(" + x + " , " + y+")"); + item.series.label + " :
(" + x + " , " + y+")"); } } else { $("#chart-tooltip").remove(); - previousPoint = null; + previousPoint = null; } }); $chart.data('chart-obj', chart);