mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Changed definition of callback to method shorthand. Added missing semicolon.
This commit is contained in:
+2
-2
@@ -62,8 +62,8 @@ $(document).ready(function() {
|
||||
enabled: true,
|
||||
mode: "x-axis",
|
||||
callbacks: {
|
||||
title: function(tooltipItem, data) {
|
||||
var idx = tooltipItem[0].index
|
||||
title(tooltipItem, data) {
|
||||
var idx = tooltipItem[0].index;
|
||||
var h = Math.floor(idx/6);
|
||||
var m = 10*(idx%6);
|
||||
var from = padNumber(h)+":"+padNumber(m)+":00";
|
||||
|
||||
Reference in New Issue
Block a user