Fix IE support for main page (untested). Has been broken because codacy enforces Object Literal Shorthand Syntax

This commit is contained in:
DL6ER
2017-01-03 14:59:37 +01:00
parent 3e139b1b96
commit 810b994af2
+2 -2
View File
@@ -291,7 +291,7 @@ $(document).ready(function() {
enabled: true,
mode: "x-axis",
callbacks: {
title(tooltipItem, data) {
title: function(tooltipItem, data){
var label = tooltipItem[0].xLabel;
var time = label.match(/(\d?\d):?(\d?\d?)/);
var h = parseInt(time[1], 10);
@@ -300,7 +300,7 @@ $(document).ready(function() {
var to = padNumber(h)+":"+padNumber(m+9)+":59";
return "Queries from "+from+" to "+to;
},
label(tooltipItems, data) {
label: function(tooltipItems, data) {
if(tooltipItems.datasetIndex === 1)
{
var percentage = 0.0;