diff --git a/cypress/integration/file_uploader.js b/cypress/integration/file_uploader.js index dff2d11427..8dd0f22ee9 100644 --- a/cypress/integration/file_uploader.js +++ b/cypress/integration/file_uploader.js @@ -6,7 +6,7 @@ context('FileUploader', () => { function open_upload_dialog() { cy.window().its('frappe').then(frappe => { - new frappe.ui.FileUploader() + new frappe.ui.FileUploader(); }); } diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 232547a75a..010c0242f5 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -1,4 +1,4 @@ -import 'cypress-file-upload' +import 'cypress-file-upload'; // *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite diff --git a/frappe/public/js/frappe/views/communication.js b/frappe/public/js/frappe/views/communication.js index 15d456bff0..7d90d80d5f 100755 --- a/frappe/public/js/frappe/views/communication.js +++ b/frappe/public/js/frappe/views/communication.js @@ -360,7 +360,7 @@ frappe.views.CommunicationComposer = Class.extend({ var attach = $(fields.select_attachments.wrapper); if (!this.attachments) { - this.attachments = [] + this.attachments = []; } let args = { diff --git a/frappe/public/js/frappe/views/interaction.js b/frappe/public/js/frappe/views/interaction.js index 25490446e2..458f4c8dc1 100644 --- a/frappe/public/js/frappe/views/interaction.js +++ b/frappe/public/js/frappe/views/interaction.js @@ -119,7 +119,7 @@ frappe.views.InteractionComposer = class InteractionComposer { var attach = $(fields.select_attachments.wrapper); if (!this.attachments) { - this.attachments = [] + this.attachments = []; } let args = { @@ -136,14 +136,14 @@ frappe.views.InteractionComposer = class InteractionComposer { this.frm.attachments.attachment_uploaded(attachment); this.render_attach(); } - } + }; } $("
" +__("Select Attachments")+"
\

\ " - +__("Add Attachment")+"

").appendTo(attach.empty()) + +__("Add Attachment")+"

").appendTo(attach.empty()); attach .find(".add-more-attachments a") .on('click',() => new frappe.ui.FileUploader(args));