From f2a773d080b139ef6075198b8d0b95e8532a48ea Mon Sep 17 00:00:00 2001 From: Awais-cb Date: Fri, 26 May 2017 11:50:43 +0500 Subject: [PATCH] MOdified: Removed unused old chart's tool tip code --- .../styles/cb_2014/layout/index.html | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/upload/admin_area/styles/cb_2014/layout/index.html b/upload/admin_area/styles/cb_2014/layout/index.html index f5221003..49043bdc 100644 --- a/upload/admin_area/styles/cb_2014/layout/index.html +++ b/upload/admin_area/styles/cb_2014/layout/index.html @@ -560,49 +560,6 @@ $.ajax({ // $.plot("#placeholder", data, options); - var iteration = 0; - - function showTooltip(x, y, contents) { - $('
' + contents + '
').css( { - position: 'absolute', - display: 'none', - top: y + 5, - left: x + 5, - border: '1px solid #fdd', - padding: '2px', - 'background-color': '#fee', - opacity: 0.80 - }).appendTo("body").fadeIn(200); - } - - var previousPoint = null; - function tooltip(chart_id,tooltip_id){ - - $(chart_id).bind("plothover", function (event, pos, item) { - $("#x").text(pos.x.toFixed(2)); - $("#y").text(pos.y.toFixed(2)); - - if ($(tooltip_id).is(':checked')) { - if (item) { - if (previousPoint != item.dataIndex) { - previousPoint = item.dataIndex; - - $("#tooltip").remove(); - var x = item.datapoint[0].toFixed(2), - y = item.datapoint[1].toFixed(2); - - showTooltip(item.pageX, item.pageY, - item.series.label + " = " + y); - } - } - else { - $("#tooltip").remove(); - previousPoint = null; - } - } - }); - } - var page = '{$baseurl}/admin_area/index.php'; $(".oneNote .delete").on({