Browse Source

#335: call save only if 'active'

pull/350/head
RubaXa 10 years ago
parent
commit
14864bc067
  1. 12
      Sortable.js

12
Sortable.js

@ -704,8 +704,13 @@
}
}
// Drag end event
Sortable.active && _dispatchEvent(this, rootEl, 'end', dragEl, rootEl, oldIndex, newIndex);
if (Sortable.active) {
// Drag end event
_dispatchEvent(this, rootEl, 'end', dragEl, rootEl, oldIndex, newIndex);
// Save sorting
this.save();
}
}
// Nulling
@ -726,9 +731,6 @@
activeGroup =
Sortable.active = null;
// Save sorting
this.save();
}
},

Loading…
Cancel
Save