forked from 0x2620/pandora
fix move calls
This commit is contained in:
parent
268fb559d9
commit
ce8ea1361f
1 changed files with 3 additions and 4 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue