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