N°7355 - Fix deprecated jQuery call

This commit is contained in:
Stephen Abello
2024-03-26 11:32:55 +01:00
parent 69e481dbc1
commit c29bff4d91
16 changed files with 25 additions and 25 deletions

View File

@@ -276,7 +276,7 @@ abstract class AbstractAttachmentsRenderer
e.stopPropagation();
})
$(document).bind('dragover', function (e) {
$(document).on('dragover', function (e) {
var bFiles = false;
if (e.dataTransfer && e.dataTransfer.types)
{
@@ -317,7 +317,7 @@ abstract class AbstractAttachmentsRenderer
window.dropZoneCnt++;
});
$(document).bind('dragend dragleave drop', function(event){
$(document).on('dragend dragleave drop', function(event){
window.dropZoneCnt--;
if(window.dropZone && window.dropZoneCnt === 0){
window.dropZone.removeClass('ibo-drag-in');