removed all onclick handlers from index template

This commit is contained in:
azivner
2018-03-24 00:54:50 -04:00
parent f8649feea4
commit 1612e9093d
14 changed files with 61 additions and 20 deletions

View File

@@ -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]);