CC-3335 : Timeline - Drag and drop usability improvements
dragging and dropping multiple files is working.
This commit is contained in:
parent
09ae26a531
commit
44dccf15ce
2 changed files with 41 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue