first update lists, then reload list

This commit is contained in:
rolux 2013-08-03 14:27:22 +00:00
parent 7f5eb4d1b5
commit 1cfdd81dca

View file

@ -371,13 +371,6 @@ pandora.createLinks = function($element) {
var list, listData,
type = getType(object.items),
ui = pandora.user.ui;
if (object.action != 'copy') {
if (type == 'item' && ui.section == 'items' && Ox.contains(object.targets, ui._list)) {
pandora.reloadList();
} else if (type == 'clip' && ui.section == 'edits' && Ox.contains(object.targets, ui.edit)) {
// FIXME: reload clip list
}
}
if (type == 'item' && ui.section == 'items') {
Ox.Request.clearCache('find');
object.targets.filter(function(list) {
@ -398,6 +391,14 @@ pandora.createLinks = function($element) {
} else if (type == 'clip' && ui.section == 'edits') {
// FIXME: update edit list
}
if (object.action != 'copy') {
if (type == 'item' && ui.section == 'items' && Ox.contains(object.targets, ui._list)) {
Ox.print('RELOADING LIST')
pandora.reloadList();
} else if (type == 'clip' && ui.section == 'edits' && Ox.contains(object.targets, ui.edit)) {
// FIXME: reload clip list
}
}
callback && callback();
}