fix move calls

This commit is contained in:
rolux 2013-08-04 11:38:31 +00:00
parent 268fb559d9
commit ce8ea1361f

View file

@ -295,10 +295,9 @@ pandora.createLinks = function($element) {
} else if (action == 'cut' || action == 'delete') { } else if (action == 'cut' || action == 'delete') {
removeItems(items, targets[0], addToHistory); removeItems(items, targets[0], addToHistory);
} else if (action == 'move') { } else if (action == 'move') {
removeItems( removeItems(items, targets[0], function() {
items, targets[0], addItems(items, targets[1], addToHistory);
addItems(items, targets[1], addToHistory) });
);
} }
function addToHistory(result, addedItems) { function addToHistory(result, addedItems) {
var actions = { var actions = {