CC-3335 : Timeline - Drag and drop usability improvements

dragging and dropping multiple files is working.
This commit is contained in:
Naomi Aro 2012-02-17 15:53:10 +01:00
parent 09ae26a531
commit 44dccf15ce
2 changed files with 41 additions and 21 deletions

View file

@ -19,7 +19,16 @@ var AIRTIME = (function(AIRTIME){
mod.fnDrawCallback = function() {
$('#library_display tr:not(:first)').draggable({
helper: 'clone',
//helper: 'clone',
helper: function(){
var selected = $('#library_display input:checked').parents('tr');
if (selected.length === 0) {
selected = $(this);
}
var container = $('<div/>').attr('id', 'draggingContainer');
container.append(selected.clone());
return container;
},
cursor: 'pointer',
connectToSortable: '#show_builder_table'
});
@ -63,9 +72,7 @@ var AIRTIME = (function(AIRTIME){
}
}
AIRTIME.showbuilder.fnAdd(aMediaIds, aSchedIds, function(){
oLibTT.fnSelectNone();
});
AIRTIME.showbuilder.fnAdd(aMediaIds, aSchedIds);
};
//[0] = button text