diff --git a/static/js/utils.js b/static/js/utils.js index 09f810de..332696f3 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -295,10 +295,9 @@ pandora.createLinks = function($element) { } else if (action == 'cut' || action == 'delete') { removeItems(items, targets[0], addToHistory); } else if (action == 'move') { - removeItems( - items, targets[0], - addItems(items, targets[1], addToHistory) - ); + removeItems(items, targets[0], function() { + addItems(items, targets[1], addToHistory); + }); } function addToHistory(result, addedItems) { var actions = {