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