diff -r 9e43b216ccd3 -r d25a1b160dba www/js/log_brew.js --- a/www/js/log_brew.js Sat Sep 14 10:41:35 2019 +0200 +++ b/www/js/log_brew.js Fri Oct 18 13:12:46 2019 +0200 @@ -55,8 +55,8 @@ { name: "event", type: "string" } ], url: 'getbrewlog.php?code=' + my_code - }; - var dataAdapter = new $.jqx.dataAdapter(sourceA, { + }, + dataAdapter = new $.jqx.dataAdapter(sourceA, { autoBind: true, async: false, loadComplete: function () { @@ -64,9 +64,8 @@ }, loadError: function (jqXHR, status, error) { } - }); - - var settings = { + }), + settings = { title: my_code + ' "' + my_name + '"', description: "", source: dataAdapter, @@ -77,8 +76,8 @@ return value.getHours() + ':' + value.getMinutes(); }, toolTipFormatFunction: function (value) { - var h = value.getHours(); - var m = value.getMinutes(); + var h = value.getHours(), + m = value.getMinutes(); return value.getDate() + '-' + (value.getMonth() + 1) + '-' + value.getFullYear() + ' ' + (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m); }, @@ -105,8 +104,8 @@ $("#brew_chart").jqxChart(settings); $("#print").click(function () { - var content = $("#brew_chart")[0].outerHTML; - var newWindow = window.open("", "", "width=865, height=425"), + var content = $("#brew_chart")[0].outerHTML, + newWindow = window.open("", "", "width=865, height=425"), document = newWindow.document.open(), pageContent = '' +