mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
N°7355 - Fix deprecated jQuery call
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user