ajax for drag and drop only.
This commit is contained in:
parent
46c8b0d0a8
commit
135b85a9af
|
@ -72,7 +72,7 @@ $(document).ready(function() {
|
|||
|
||||
$.post("ui_handler.php",
|
||||
|
||||
{ 'act': 'PL.addItem', 'id': id },
|
||||
{ 'act': 'SPL.addItem', 'id': id },
|
||||
|
||||
function(data){
|
||||
|
||||
|
|
|
@ -321,6 +321,14 @@ switch ($_REQUEST['act']) {
|
|||
}
|
||||
$uiHandler->PLAYLIST->setReload();
|
||||
break;
|
||||
|
||||
case "SPL.addItem":
|
||||
if (isset($_REQUEST['id'])) {
|
||||
if ($uiHandler->PLAYLIST->addItem($_REQUEST['id']) === TRUE) {
|
||||
$uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
|
||||
}
|
||||
}
|
||||
die('{"jsonrpc" : "2.0"}');
|
||||
|
||||
case "PL.setClipLength":
|
||||
$uiHandler->PLAYLIST->setClipLength($_REQUEST['pos'], $_REQUEST['cueIn'], $_REQUEST['cueOut']);
|
||||
|
|
Loading…
Reference in New Issue