added hide_in_autocomplete attribute to weight script

This commit is contained in:
azivner 2018-02-13 22:50:12 -05:00
parent dfd9927310
commit 5bce9a5f94

View file

@ -40,7 +40,8 @@
await this.createNote(parentNoteId, 'data', jsonContent, { await this.createNote(parentNoteId, 'data', jsonContent, {
json: true, json: true,
attributes: { attributes: {
date_data: date date_data: date,
hide_in_autocomplete: null
} }
}); });
} }
@ -70,7 +71,9 @@
return data; return data;
}); });
var config = { const ctx = $("#canvas")[0].getContext("2d");
new Chart(ctx, {
type: 'line', type: 'line',
data: { data: {
labels: data.map(row => row.date), labels: data.map(row => row.date),
@ -82,10 +85,7 @@
fill: false fill: false
}] }]
} }
}; });
var ctx = $("#canvas")[0].getContext("2d");
new Chart(ctx, config);
} }
$("#weight-form").submit(event => { $("#weight-form").submit(event => {