mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
eslint: Enable prefer-arrow-callback.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
960174408f
commit
a79322bc94
@@ -115,9 +115,7 @@ exports.update_attachments = function (event) {
|
||||
return;
|
||||
}
|
||||
if (event.op === 'remove' || event.op === 'update') {
|
||||
attachments = attachments.filter(function (a) {
|
||||
return a.id !== event.attachment.id;
|
||||
});
|
||||
attachments = attachments.filter((a) => a.id !== event.attachment.id);
|
||||
}
|
||||
if (event.op === 'add' || event.op === 'update') {
|
||||
format_attachment_data([event.attachment]);
|
||||
@@ -135,7 +133,7 @@ exports.set_up_attachments = function () {
|
||||
const status = $('#delete-upload-status');
|
||||
loading.make_indicator($('#attachments_loading_indicator'), {text: 'Loading...'});
|
||||
|
||||
$('#uploaded_files_table').on('click', '.remove-attachment', function (e) {
|
||||
$('#uploaded_files_table').on('click', '.remove-attachment', (e) => {
|
||||
delete_attachments($(e.target).closest(".uploaded_file_row").attr('data-attachment-id'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user