putting back popups in playlist so context menu will still work.

This commit is contained in:
naomiaro 2010-10-18 07:03:48 -04:00
parent 321c698c40
commit 4acc4cf715
2 changed files with 10 additions and 6 deletions

View File

@ -30,6 +30,7 @@ function collector_submit(formname, action, script, name, width, height)
else {
//alert(action);
/*
if(action === 'PL.removeItem') {
$.post(script + '?act=' + action + href,
@ -51,6 +52,9 @@ function collector_submit(formname, action, script, name, width, height)
else {
hpopup(script + '?act=' + action + href);
}
*/
hpopup(script + '?act=' + action + href);
}
}

View File

@ -319,8 +319,9 @@ switch ($_REQUEST['act']) {
$uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
}
}
die('{"jsonrpc" : "2.0"}');
$uiHandler->PLAYLIST->setReload();
break;
case "PL.setClipLength":
$uiHandler->PLAYLIST->setClipLength($_REQUEST['pos'], $_REQUEST['cueIn'], $_REQUEST['cueOut']);
break;
@ -331,10 +332,9 @@ switch ($_REQUEST['act']) {
case "PL.removeItem":
$uiHandler->PLAYLIST->removeItem($_REQUEST['id']);
//$uiHandler->PLAYLIST->setReload();
//break;
die('{"jsonrpc" : "2.0"}');
$uiHandler->PLAYLIST->setReload();
break;
case "PL.release":
$uiHandler->PLAYLIST->release();
$uiHandler->PLAYLIST->setReload();