mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 14:35:40 +08:00
added hide_in_autocomplete attribute to weight script
This commit is contained in:
parent
dfd9927310
commit
5bce9a5f94
1 changed files with 6 additions and 6 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue