side playlist
This commit is contained in:
parent
e4cf1a6fcf
commit
4c3d499699
|
@ -2,21 +2,16 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('#search_results').find('tr').not('.blue_head').draggable({
|
$('#search_results').find('tr').not('.blue_head').draggable({
|
||||||
connectToSortable: 'ul#spl_sortable',
|
|
||||||
helper: 'clone'
|
helper: 'clone'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('#cc_right_panel').find('h1').click(function(){
|
$('#cc_right_panel').find('h1').click(function(){
|
||||||
$(this).siblings().toggle();
|
$(this).siblings().toggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
function movePLItem(event, ui) {
|
function movePLItem(event, ui) {
|
||||||
var ul, li, newPos, oldPos, id_prefix, tag;
|
var ul, li, newPos, oldPos, id_prefix;
|
||||||
|
|
||||||
tag = ui.item.get(0).tagName
|
|
||||||
|
|
||||||
if( tag === "TR")
|
|
||||||
return;
|
|
||||||
|
|
||||||
ul = $(this);
|
ul = $(this);
|
||||||
li = ui.item;
|
li = ui.item;
|
||||||
|
@ -68,12 +63,27 @@ $(document).ready(function() {
|
||||||
var tr, id, ul;
|
var tr, id, ul;
|
||||||
|
|
||||||
ul = $(this);
|
ul = $(this);
|
||||||
tr = ui.item;
|
tr = ui.helper;
|
||||||
|
|
||||||
|
if(tr.get(0).tagName === 'LI')
|
||||||
|
return;
|
||||||
|
|
||||||
id = tr.find("input").attr('name');
|
id = tr.find("input").attr('name');
|
||||||
|
|
||||||
ul.find('tr').remove();
|
hpopup('ui_handler.php?act=PL.addItem&id='+id);
|
||||||
|
|
||||||
location.href='ui_handler.php?act=PL.addItem&id='+id;
|
/*
|
||||||
|
$.post('ui_handler.php',
|
||||||
|
|
||||||
|
{ 'act': 'SPL.addItem', 'id': id },
|
||||||
|
|
||||||
|
function(data){
|
||||||
|
var x;
|
||||||
|
},
|
||||||
|
|
||||||
|
"json"
|
||||||
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,8 +100,9 @@ $(document).ready(function() {
|
||||||
//PL side bar editor.
|
//PL side bar editor.
|
||||||
$("#spl_sortable").sortable();
|
$("#spl_sortable").sortable();
|
||||||
$("#spl_sortable" ).bind( "sortstop", movePLItem);
|
$("#spl_sortable" ).bind( "sortstop", movePLItem);
|
||||||
$("#spl_sortable" ).bind( "sortreceive", addPLItem);
|
|
||||||
//$("#spl_sortable" ).bind( "sortout", test);
|
$("#spl_sortable").droppable();
|
||||||
|
$("#spl_sortable" ).bind( "drop", addPLItem);
|
||||||
|
|
||||||
function removeCueInput(){
|
function removeCueInput(){
|
||||||
var span = $(this).parent();
|
var span = $(this).parent();
|
||||||
|
|
|
@ -16,12 +16,7 @@ function collector_submit(formname, action, script, name, width, height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (href == '') return false;
|
if (href == '') return false;
|
||||||
|
|
||||||
if (action === 'PL.addItem') {
|
|
||||||
location.href='ui_handler.php?act='+ action + href;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (action == 'delete') {
|
if (action == 'delete') {
|
||||||
{/literal}
|
{/literal}
|
||||||
|
|
|
@ -315,11 +315,11 @@ switch ($_REQUEST['act']) {
|
||||||
|
|
||||||
case "PL.addItem":
|
case "PL.addItem":
|
||||||
if (isset($_REQUEST['id'])) {
|
if (isset($_REQUEST['id'])) {
|
||||||
if ($uiHandler->PLAYLIST->addItem($_REQUEST['id']) !== FALSE) {
|
if ($uiHandler->PLAYLIST->addItem($_REQUEST['id']) === TRUE) {
|
||||||
$uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
|
$uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$uiHandler->PLAYLIST->setReload("ui_browser.php?id=&act=BROWSE");
|
$uiHandler->PLAYLIST->setReload();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "PL.setClipLength":
|
case "PL.setClipLength":
|
||||||
|
|
|
@ -36,6 +36,7 @@ class uiPlaylist
|
||||||
$this->Base->redirUrl = $url;
|
$this->Base->redirUrl = $url;
|
||||||
else
|
else
|
||||||
$this->Base->redirUrl = $this->reloadUrl;
|
$this->Base->redirUrl = $this->reloadUrl;
|
||||||
|
|
||||||
} // fn setReload
|
} // fn setReload
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue