Browse Source

#308: * allow drop text

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

10
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,8 +750,10 @@
var type = evt.type; var type = evt.type;
if (type === 'dragover' || type === 'dragenter') { if (type === 'dragover' || type === 'dragenter') {
this._onDragOver(evt); if (dragEl) {
_globalDragOver(evt); this._onDragOver(evt);
_globalDragOver(evt);
}
} }
else if (type === 'drop' || type === 'dragend') { else if (type === 'drop' || type === 'dragend') {
this._onDrop(evt); this._onDrop(evt);

Loading…
Cancel
Save