From ce8ea1361fd73a24eed5f19fa86792563de9bdb2 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 4 Aug 2013 11:38:31 +0000 Subject: [PATCH] fix move calls --- static/js/utils.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 = {