CC-3174 : showbuilder
group drag and drop for playlist.
This commit is contained in:
parent
a633d69c8d
commit
378d3d3ef4
3 changed files with 28 additions and 24 deletions
|
@ -19,20 +19,15 @@ var AIRTIME = (function(AIRTIME){
|
|||
mod.fnDrawCallback = function() {
|
||||
|
||||
$('#library_display tr[id ^= "au"]').draggable({
|
||||
helper: 'clone',
|
||||
/* customize the helper on dragging to look like a pl item
|
||||
*
|
||||
helper: function(ev) {
|
||||
var data, li;
|
||||
|
||||
data = $(ev.currentTarget).data("aData");
|
||||
|
||||
li = $("<li></li>");
|
||||
li.append(data.track_title);
|
||||
|
||||
return li;
|
||||
},
|
||||
*/
|
||||
helper: function(){
|
||||
var selected = $('#library_display input:checked').parents('tr[id^="au"]');
|
||||
if (selected.length === 0) {
|
||||
selected = $(this);
|
||||
}
|
||||
var container = $('<div/>').attr('id', 'draggingContainer');
|
||||
container.append(selected.clone());
|
||||
return container;
|
||||
},
|
||||
cursor: 'pointer',
|
||||
connectToSortable: '#spl_sortable'
|
||||
});
|
||||
|
|
|
@ -19,7 +19,6 @@ var AIRTIME = (function(AIRTIME){
|
|||
mod.fnDrawCallback = function() {
|
||||
|
||||
$('#library_display tr:not(:first)').draggable({
|
||||
//helper: 'clone',
|
||||
helper: function(){
|
||||
var selected = $('#library_display input:checked').parents('tr');
|
||||
if (selected.length === 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue