Browse Source

#250: + additional check

drop-text
RubaXa 10 years ago
parent
commit
7bff4352d6
  1. 12
      Sortable.js

12
Sortable.js

@ -171,13 +171,15 @@
_dragStarted: function () { _dragStarted: function () {
// Apply effect if (rootEl && dragEl) {
_toggleClass(dragEl, this.options.ghostClass, true); // Apply effect
_toggleClass(dragEl, this.options.ghostClass, true);
Sortable.active = this; Sortable.active = this;
// Drag start event // Drag start event
_dispatchEvent(rootEl, 'start', dragEl, rootEl, oldIndex); _dispatchEvent(rootEl, 'start', dragEl, rootEl, oldIndex);
}
}, },

Loading…
Cancel
Save