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') {
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 = {