Browse Source

Merge branch 'dev' of github.com:RubaXa/Sortable into dev

pull/191/head
RubaXa 10 years ago
parent
commit
126cd94a0a
  1. 2
      Sortable.js

2
Sortable.js

@ -599,7 +599,7 @@
_disableDraggable(dragEl); _disableDraggable(dragEl);
_toggleClass(dragEl, this.options.ghostClass, false); _toggleClass(dragEl, this.options.ghostClass, false);
if (!rootEl.contains(dragEl)) { if (rootEl !== dragEl.parentNode) {
// drag from one list and drop into another // drag from one list and drop into another
_dispatchEvent(dragEl.parentNode, 'sort', dragEl, rootEl, startIndex, newIndex); _dispatchEvent(dragEl.parentNode, 'sort', dragEl, rootEl, startIndex, newIndex);
_dispatchEvent(rootEl, 'sort', dragEl, rootEl, startIndex, newIndex); _dispatchEvent(rootEl, 'sort', dragEl, rootEl, startIndex, newIndex);

Loading…
Cancel
Save