can now change name/description of a playlist.

This commit is contained in:
Naomi 2011-02-09 16:53:11 -05:00
parent 0da5c340b3
commit 86d1aafed4
3 changed files with 42 additions and 40 deletions

View File

@ -80,6 +80,9 @@ class LibraryController extends Zend_Controller_Action
'title' => 'Close');
}
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Playlist/metadata/format/json/id/#id#', 'callback' => 'window["createPlaylistMetaForm"]'),
'title' => 'Edit Metadata');
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Playlist/delete'.$params, 'callback' => 'window["deletePlaylist"]'),
'title' => 'Delete');

View File

@ -1,4 +1 @@
<?php
$this->form->setAction($this->url());
echo $this->form;
<?php echo $this->form; ?>

View File

@ -328,12 +328,7 @@ function closeSPL() {
$.post(url, noOpenPL);
}
function newSPL() {
var url;
url = '/Playlist/new/format/json';
$.post(url, function(json){
function createPlaylistMetaForm(json) {
var submit, form;
submit = $('<button id="new_playlist_submit">Submit</button>')
@ -368,7 +363,14 @@ function newSPL() {
.empty()
.append(form)
.append(submit);
});
}
function newSPL() {
var url;
url = '/Playlist/new/format/json';
$.post(url, createPlaylistMetaForm);
}
function deleteSPL() {