From c35445f498aa81149be99e6dfd2a2cdab79b440f Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 3 Aug 2013 14:35:28 +0000 Subject: [PATCH] add timeout before reloading list after undo/redo --- static/js/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index 80ccfd5c..3234cd3b 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -393,7 +393,8 @@ pandora.createLinks = function($element) { } if (object.action != 'copy') { if (type == 'item' && ui.section == 'items' && Ox.contains(object.targets, ui._list)) { - pandora.reloadList(); + // 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 }