can edit playlist metadata

This commit is contained in:
naomiaro 2010-12-30 15:10:05 -05:00
parent 41c76e2c7d
commit 2a37140c4d
2 changed files with 21 additions and 4 deletions

View file

@ -62,9 +62,6 @@ class LibraryController extends Zend_Controller_Action
}
else if($type === "pl") {
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Playlist/delete'.$params, 'callback' => 'window["deletePlaylist"]'),
'title' => 'Delete');
if(!isset($pl_sess->id) || $pl_sess->id !== $id) {
$menu[] = array('action' =>
array('type' => 'ajax',
@ -80,6 +77,12 @@ class LibraryController extends Zend_Controller_Action
'title' => 'Close');
}
$menu[] = array('action' => array('type' => 'gourl', 'url' => '/Playlist/metadata'.$params),
'title' => 'Description');
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Playlist/delete'.$params, 'callback' => 'window["deletePlaylist"]'),
'title' => 'Delete');
}
//returns format jjmenu is looking for.