From d8e6e18855515fed504f4b958182d2648dc854e6 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 3 Aug 2013 14:39:39 +0000 Subject: [PATCH] handle undo copy when copy target is the current list --- static/js/utils.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index 3234cd3bb..fb6b45a32 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -388,16 +388,12 @@ 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)) { + if (Ox.contains(object.targets, ui._list)) { // FIXME: Why is this timeout needed? setTimeout(pandora.reloadList, 250); - } else if (type == 'clip' && ui.section == 'edits' && Ox.contains(object.targets, ui.edit)) { - // FIXME: reload clip list } + } else if (type == 'clip' && ui.section == 'edits') { + // FIXME: update edit list and reload clip list } callback && callback(); }