mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°3657 - Replace calls to deprecate jQuery methods (".click(callback)" to ".on('click', callback)")
This commit is contained in:
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user