From b114fcf23534b8564009f1fa0ce2402d10e54429 Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Tue, 17 Nov 2020 09:50:48 +0100 Subject: [PATCH] Added a specific rendering for BG Check events on the Day to Day report. Added an option to hide BG Check and other events on the Day to Day report. --- lib/report/reportclient.js | 3 +++ lib/report_plugins/daytoday.js | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/report/reportclient.js b/lib/report/reportclient.js index c9061553e05e..039e32b79c1d 100644 --- a/lib/report/reportclient.js +++ b/lib/report/reportclient.js @@ -250,6 +250,9 @@ var init = function init () { options.openAps = true; } + options.bgcheck = $('#rp_optionsbgcheck').is(':checked'); + options.othertreatments = $('#rp_optionsothertreatments').is(':checked'); + var matchesneeded = 0; // date range diff --git a/lib/report_plugins/daytoday.js b/lib/report_plugins/daytoday.js index 47c16cf71a81..2a6b0955824a 100644 --- a/lib/report_plugins/daytoday.js +++ b/lib/report_plugins/daytoday.js @@ -34,6 +34,8 @@ daytoday.html = function html (client) { '' + '' + '' + + '' + + '' + ' ' + translate('Size') + '