Skip to content

Commit

Permalink
Fix reference in messageBoxActions
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Mar 29, 2019
1 parent 3c94b52 commit 302f11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ui-message/client/startup/messageBoxActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ messageBox.actions.add('Add_files_from', 'Computer', {
id: 'file-upload',
icon: 'computer',
condition: () => settings.get('FileUpload_Enabled'),
action({ event }) {
action({ event, messageBox }) {
event.preventDefault();
const $input = $(document.createElement('input'));
$input.css('display', 'none');
Expand All @@ -49,7 +49,7 @@ messageBox.actions.add('Add_files_from', 'Computer', {
};
});

fileUpload(filesToUpload, $('.js-input-message'));
fileUpload(filesToUpload, $('.js-input-message', messageBox));
$input.remove();
});

Expand Down

0 comments on commit 302f11a

Please sign in to comment.