CC-2970 : playlist drop indicator
looking into customizing the placeholder, connected library to playlist sortable.
This commit is contained in:
parent
19f069b602
commit
bdc9707052
|
@ -65,7 +65,8 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
$baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
|
||||
|
||||
$view->headScript()->appendFile($baseUrl.'/js/libs/jquery-1.7.1.min.js','text/javascript');
|
||||
$view->headScript()->appendFile($baseUrl.'/js/libs/jquery-ui-1.8.11.custom.min.js','text/javascript');
|
||||
//$view->headScript()->appendFile($baseUrl.'/js/libs/jquery-ui-1.8.11.custom.min.js','text/javascript');
|
||||
$view->headScript()->appendFile('https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js');
|
||||
$view->headScript()->appendFile($baseUrl.'/js/libs/jquery.stickyPanel.js','text/javascript');
|
||||
$view->headScript()->appendFile($baseUrl.'/js/qtip/jquery.qtip.min.js','text/javascript');
|
||||
$view->headScript()->appendFile($baseUrl.'/js/jplayer/jquery.jplayer.min.js');
|
||||
|
|
|
@ -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'
|
||||
});
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue