forked from 0x2620/pandora
fix list item count update after undo/redo
This commit is contained in:
parent
decb6ba0c2
commit
7f5eb4d1b5
1 changed files with 18 additions and 18 deletions
|
@ -378,25 +378,25 @@ pandora.createLinks = function($element) {
|
||||||
// FIXME: reload clip list
|
// FIXME: reload clip list
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (object.action == 'copy' || object.action == 'move') {
|
if (type == 'item' && ui.section == 'items') {
|
||||||
if (type == 'item' && ui.section == 'items') {
|
Ox.Request.clearCache('find');
|
||||||
Ox.Request.clearCache('find');
|
object.targets.filter(function(list) {
|
||||||
object.targets.forEach(function(list) {
|
return list != ui._list;
|
||||||
listData = pandora.getListData(list);
|
}).forEach(function(list) {
|
||||||
pandora.api.find({
|
listData = pandora.getListData(list);
|
||||||
query: {
|
pandora.api.find({
|
||||||
conditions: [{key: 'list', value: list, operator: '=='}],
|
query: {
|
||||||
operator: '&'
|
conditions: [{key: 'list', value: list, operator: '=='}],
|
||||||
}
|
operator: '&'
|
||||||
}, function(result) {
|
}
|
||||||
pandora.$ui.folderList[listData.folder].value(
|
}, function(result) {
|
||||||
list, 'items', result.data.items
|
pandora.$ui.folderList[listData.folder].value(
|
||||||
);
|
list, 'items', result.data.items
|
||||||
});
|
);
|
||||||
});
|
});
|
||||||
} else if (type == 'clip' && ui.section == 'edits') {
|
});
|
||||||
// FIXME: update edit list
|
} else if (type == 'clip' && ui.section == 'edits') {
|
||||||
}
|
// FIXME: update edit list
|
||||||
}
|
}
|
||||||
callback && callback();
|
callback && callback();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue