CC-3174 : showbuilder

can add items to a playlist with the refactoring.
This commit is contained in:
Naomi Aro 2012-02-04 00:12:06 +01:00
parent 1deebedf11
commit 19f069b602
6 changed files with 286 additions and 197 deletions

View file

@ -1,6 +1,7 @@
function fnLibraryTableRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
$(nRow).attr("id", aData["tr_id"]);
$(nRow).data("aData", aData);
$(nRow).find('td')
.jjmenu("rightClick",
@ -12,8 +13,19 @@ function fnLibraryTableRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFul
function fnLibraryTableDrawCallback() {
$('#library_display tr[id ^= "au"]').draggable({
helper: 'clone',
cursor: 'pointer'
//helper: 'clone',
helper: function(ev, el) {
var data, li;
data = $(ev.currentTarget).data("aData");
li = $("<li></li>");
li.append(data.track_title);
return li;
},
cursor: 'pointer',
connectToSortable: '#spl_sortable'
});
}