Ticket #2063: uidraggable121607.patch
| File uidraggable121607.patch, 1.2 kB (added by mnichols, 1 year ago) |
|---|
-
ui.draggable.js
33 33 var m = $.ui.ddmanager.droppables; 34 34 for (var i = 0; i < m.length; i++) { 35 35 if(m[i].item.disabled) continue; 36 m[i].offset = $(m[i].item.element).offset(); 37 if (t && m[i].item.options.accept (t.element)) //Activate the droppable if used directly from draggables36 m[i].offset = $(m[i].item.element).offset(); 37 if (t && m[i].item.options.accept.call(m[i].item,t)) //Activate the droppable if used directly from draggables 38 38 m[i].item.activate.call(m[i].item, e); 39 39 } 40 40 }, … … 45 45 if (!!oDrop && !oDrop.item.disabled && $.ui.intersect(oDrag, oDrop, oDrop.item.options.tolerance)) 46 46 oDrop.item.drop.call(oDrop.item, e); 47 47 }); 48 $.each(oDrops, function(i, oDrop) { 49 if (!oDrop.item.disabled && oDrop.item.options.accept (oDrag.element)) {48 $.each(oDrops, function(i, oDrop) { 49 if (!oDrop.item.disabled && oDrop.item.options.accept.call(oDrop.item,oDrag)) { 50 50 oDrop.out = 1; oDrop.over = 0; 51 51 oDrop.item.deactivate.call(oDrop.item, e); 52 52 }
