diff --git a/static/js/trendings.js b/static/js/trendings.js index e2721bd..0113b20 100644 --- a/static/js/trendings.js +++ b/static/js/trendings.js @@ -185,10 +185,10 @@ function updatePie(pie, data) { $("#tooltip").html(legendFormatter(item.series.label)) .css({top: pos.pageY+5, left: pos.pageX+5}) .fadeIn(200); - } else { - $("#tooltip").hide(); - } - }); + } else { + $("#tooltip").hide(); + } + }); } }