From 5bce9a5f94984ab71a107192b25a27b6dff6c006 Mon Sep 17 00:00:00 2001 From: azivner Date: Tue, 13 Feb 2018 22:50:12 -0500 Subject: [PATCH] added hide_in_autocomplete attribute to weight script --- src/scripts/weight.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/scripts/weight.html b/src/scripts/weight.html index 57fcbd9ad..cac05a419 100644 --- a/src/scripts/weight.html +++ b/src/scripts/weight.html @@ -40,7 +40,8 @@ await this.createNote(parentNoteId, 'data', jsonContent, { json: true, attributes: { - date_data: date + date_data: date, + hide_in_autocomplete: null } }); } @@ -70,7 +71,9 @@ return data; }); - var config = { + const ctx = $("#canvas")[0].getContext("2d"); + + new Chart(ctx, { type: 'line', data: { labels: data.map(row => row.date), @@ -82,10 +85,7 @@ fill: false }] } - }; - - var ctx = $("#canvas")[0].getContext("2d"); - new Chart(ctx, config); + }); } $("#weight-form").submit(event => {