cleanup before backend returns

This commit is contained in:
j 2019-01-31 13:40:49 +05:30
parent 75149e715b
commit b1a2106381

View file

@ -432,6 +432,7 @@ oml.enableDragAndDrop = function($list, canMove) {
) {
var targets = drag.action == 'copy' ? drag.target.id
: [oml.user.ui._list, drag.target.id];
cleanup(250);
oml.doHistory(drag.action, data.ids, targets, function() {
Ox.Request.clearCache('find');
oml.api.find({
@ -449,7 +450,6 @@ oml.enableDragAndDrop = function($list, canMove) {
drag.target.id, 'items', result.data.items
);
*/
cleanup(250);
});
oml.$ui.folders.updateItems();
if (drag.action == 'move') {