mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
removed all onclick handlers from index template
This commit is contained in:
@@ -229,6 +229,8 @@ function uploadAttachment() {
|
||||
$("#attachment-upload").trigger('click');
|
||||
}
|
||||
|
||||
$("#upload-attachment-button").click(uploadAttachment);
|
||||
|
||||
$("#attachment-upload").change(async function() {
|
||||
const formData = new FormData();
|
||||
formData.append('upload', this.files[0]);
|
||||
|
||||
Reference in New Issue
Block a user