Browse Source

#335: call save only if 'active'

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

10
Sortable.js

@ -704,8 +704,13 @@
}
}
if (Sortable.active) {
// Drag end event
Sortable.active && _dispatchEvent(this, rootEl, 'end', dragEl, rootEl, oldIndex, newIndex);
_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