From 1cfdd81dca3f68de2c14d739fe7b871fe2d26c21 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 3 Aug 2013 14:27:22 +0000 Subject: [PATCH] first update lists, then reload list --- static/js/utils.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index 6211bb1f..89b91ad1 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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(); }