can drag song to a certain point in the playlist.

This commit is contained in:
Naomi 2011-01-27 15:11:19 -05:00
parent 1183b69149
commit a41c6475f4
3 changed files with 22 additions and 9 deletions

View file

@ -164,11 +164,12 @@ class PlaylistController extends Zend_Controller_Action
public function addItemAction()
{
$id = $this->_getParam('id');
$pos = $this->_getParam('pos', null);
if (!is_null($id)) {
$pl = $this->getPlaylist();
$res = $pl->addAudioClip($id);
$res = $pl->addAudioClip($id, $pos);
if (PEAR::isError($res)) {
$this->view->message = $res->getMessage();