ajax for drag and drop only.

This commit is contained in:
naomiaro 2010-10-18 07:12:44 -04:00
parent 46c8b0d0a8
commit 135b85a9af
2 changed files with 9 additions and 1 deletions

View File

@ -72,7 +72,7 @@ $(document).ready(function() {
$.post("ui_handler.php",
{ 'act': 'PL.addItem', 'id': id },
{ 'act': 'SPL.addItem', 'id': id },
function(data){

View File

@ -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']);