fix clip drag & drop
This commit is contained in:
parent
5ead7f75f4
commit
c6aaacdf90
1 changed files with 4 additions and 13 deletions
|
@ -433,7 +433,6 @@ pandora.createLinks = function($element) {
|
||||||
}
|
}
|
||||||
} else if (type == 'clip' && ui.section == 'edits') {
|
} else if (type == 'clip' && ui.section == 'edits') {
|
||||||
// FIXME: update edit list (once it has item count)
|
// FIXME: update edit list (once it has item count)
|
||||||
Ox.Request.clearCache('getEdit');
|
|
||||||
if (Ox.contains(object.targets, ui.edit)) {
|
if (Ox.contains(object.targets, ui.edit)) {
|
||||||
pandora.$ui.editPanel.updatePanel();
|
pandora.$ui.editPanel.updatePanel();
|
||||||
}
|
}
|
||||||
|
@ -632,19 +631,11 @@ pandora.enableDragAndDrop = function($list, canMove, section) {
|
||||||
drag.action == 'move' && pandora.reloadList();
|
drag.action == 'move' && pandora.reloadList();
|
||||||
});
|
});
|
||||||
} else if (section == 'edits') {
|
} else if (section == 'edits') {
|
||||||
var clips = data.ids.map(function(id) {
|
var targets = drag.action == 'copy' ? drag.target.id
|
||||||
var split = id.split('/'),
|
: [pandora.user.ui.edit, drag.target.id];
|
||||||
item = split[0];
|
pandora.doHistory(drag.action, data.ids, targets, function() {
|
||||||
split = split[1].split('-');
|
|
||||||
return {
|
|
||||||
item: item,
|
|
||||||
'in': parseFloat(split[0]),
|
|
||||||
out: parseFloat(split[1]),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
pandora.doHistory(drag.action, clips, [pandora.user.ui.edit, drag.target.id], function() {
|
|
||||||
Ox.print('FIXME, reload clipslist on move');
|
Ox.print('FIXME, reload clipslist on move');
|
||||||
Ox.Request.clearCache('Edit');
|
pandora.$ui.editPanel.updatePanel();
|
||||||
cleanup(250);
|
cleanup(250);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue