fix list item count update after undo/redo

This commit is contained in:
rolux 2013-08-03 14:18:29 +00:00
parent 9045cefa1a
commit decb6ba0c2

View file

@ -380,9 +380,9 @@ 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');
object.targets.forEach(function(list) {
listData = pandora.getListData(list);
pandora.api.find({ pandora.api.find({
query: { query: {
conditions: [{key: 'list', value: list, operator: '=='}], conditions: [{key: 'list', value: list, operator: '=='}],
@ -393,6 +393,7 @@ pandora.createLinks = function($element) {
list, 'items', result.data.items 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
} }