Browse Source

#308: * allow drop text

pull/346/head
RubaXa 10 years ago
parent
commit
c1f6cf50c4
  1. 6
      Sortable.js

6
Sortable.js

@ -530,10 +530,6 @@
isOwner = (activeGroup === group), isOwner = (activeGroup === group),
canSort = options.sort; canSort = options.sort;
if (!dragEl) {
return;
}
if (evt.preventDefault !== void 0) { if (evt.preventDefault !== void 0) {
evt.preventDefault(); evt.preventDefault();
!options.dragoverBubble && evt.stopPropagation(); !options.dragoverBubble && evt.stopPropagation();
@ -754,9 +750,11 @@
var type = evt.type; var type = evt.type;
if (type === 'dragover' || type === 'dragenter') { if (type === 'dragover' || type === 'dragenter') {
if (dragEl) {
this._onDragOver(evt); this._onDragOver(evt);
_globalDragOver(evt); _globalDragOver(evt);
} }
}
else if (type === 'drop' || type === 'dragend') { else if (type === 'drop' || type === 'dragend') {
this._onDrop(evt); this._onDrop(evt);
} }

Loading…
Cancel
Save