Compare commits

...

2 commits

Author SHA1 Message Date
j
b1a2106381 cleanup before backend returns 2019-01-31 13:40:49 +05:30
j
75149e715b fix sortLists 2019-01-31 13:40:37 +05:30
2 changed files with 2 additions and 1 deletions

View file

@ -348,6 +348,7 @@ def sortLists(data):
'''
n = 0
logger.debug('sortLists %s', data)
lists = []
for id in data['ids']:
l = models.List.get(id)
l.index_ = n

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') {