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 if (Sortable.active) {
Sortable.active && _dispatchEvent(this, rootEl, 'end', dragEl, rootEl, oldIndex, newIndex); // Drag end event
_dispatchEvent(this, rootEl, 'end', dragEl, rootEl, oldIndex, newIndex);
// Save sorting
this.save();
}
} }
// Nulling // Nulling
@ -726,9 +731,6 @@
activeGroup = activeGroup =
Sortable.active = null; Sortable.active = null;
// Save sorting
this.save();
} }
}, },

Loading…
Cancel
Save