CC-2970 : playlist drop indicator

looking into customizing the placeholder, connected library to playlist sortable.
This commit is contained in:
Naomi Aro 2012-02-04 02:07:32 +01:00
parent 19f069b602
commit bdc9707052
3 changed files with 12 additions and 3 deletions

View file

@ -13,8 +13,9 @@ function fnLibraryTableRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFul
function fnLibraryTableDrawCallback() {
$('#library_display tr[id ^= "au"]').draggable({
//helper: 'clone',
helper: function(ev, el) {
helper: 'clone',
/*
helper: function(ev) {
var data, li;
data = $(ev.currentTarget).data("aData");
@ -24,6 +25,7 @@ function fnLibraryTableDrawCallback() {
return li;
},
*/
cursor: 'pointer',
connectToSortable: '#spl_sortable'
});

View file

@ -458,6 +458,12 @@ function setUpSPL() {
placeholder: "placeholder lib-placeholder ui-state-highlight",
forcePlaceholderSize: true,
handle: 'div.list-item-container',
start: function(event, ui) {
ui.placeholder.html("PLACE HOLDER")
.width("99.5%")
.height(56)
.append('<div style="clear:both;"/>');
},
receive: fnReceive,
update: fnUpdate
};