N°3657 - Replace calls to deprecate jQuery methods (".click(callback)" to ".on('click', callback)")

This commit is contained in:
Molkobain
2021-03-15 09:29:09 +01:00
parent e143fa5e33
commit 370c08cd68
30 changed files with 61 additions and 62 deletions

View File

@@ -272,7 +272,7 @@ JS
});
}
// Remove button handler
$('#display_attachment_'+data.result.att_id+' :button').click(function(oEvent){
$('#display_attachment_'+data.result.att_id+' :button').on('click', function(oEvent){
oEvent.preventDefault();
RemoveAttachment(data.result.att_id);
});
@@ -320,7 +320,7 @@ JS
});
});
// Remove button handler
$('.attachments_container table#$sAttachmentTableId>tbody>tr>td :button').click(function(oEvent){
$('.attachments_container table#$sAttachmentTableId>tbody>tr>td :button').on('click', function(oEvent){
oEvent.preventDefault();
RemoveAttachment($(this).closest('.attachment').find(':input[name="attachments[]"]').val());
});