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 () {
// Apply effect
_toggleClass(dragEl, this.options.ghostClass, true);
if (rootEl && dragEl) {
// Apply effect
_toggleClass(dragEl, this.options.ghostClass, true);
Sortable.active = this;
Sortable.active = this;
// Drag start event
_dispatchEvent(rootEl, 'start', dragEl, rootEl, oldIndex);
// Drag start event
_dispatchEvent(rootEl, 'start', dragEl, rootEl, oldIndex);
}
},

Loading…
Cancel
Save